Alguem pode me ajudar a resolver esse problema acusado pelo crashdetect? não entendi.
[debug] Run time error 4: "Array index out of bounds"
[debug] Attempted to read/write array element at index 65535 in array of size 900
[debug] AMX backtrace:
[debug] #0 004d65a8 in BloquearDanoAreaNeutra (playerid=65535, 1) at C:\Users\W10\Desktop\minhagamemode\gamemodes\main.pwn:6487
[debug] #1 004d6994 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=3.30000, weaponid=54, bodypart=3) at C:\Users\W10\Desktop\minhagamemode\gamemodes\main.pwn:6516
*LINHA 6516
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(IsPlayerInSafe(playerid)) {
BloquearDanoAreaNeutra(issuerid,playerid);
return 1;
}
if(IsPlayerInPrisao(playerid)) {
BloquearDanoAreaNeutra(issuerid,playerid);
Kick(issuerid);
return 1;
}
if(IsPlayerInLevel(playerid)) {
BloquearDanoAreaNeutra(issuerid,playerid);
return 1;
}
* LINHA 6487
stock BloquearDanoAreaNeutra(playerid)
{
for(new text; text < 6; text++) {
PlayerTextDrawShow(playerid, textavisosantidm[text][playerid]);
}
SetTimerEx("TirarTextdrawDM", 4000*3, false, "d", playerid);
ApplyAnimation(playerid,"PED","handscower",4.1,0,1,1,0,0);
}
return 1;
}
[debug] Run time error 4: "Array index out of bounds"
[debug] Attempted to read/write array element at index 65535 in array of size 900
[debug] AMX backtrace:
[debug] #0 004d65a8 in BloquearDanoAreaNeutra (playerid=65535, 1) at C:\Users\W10\Desktop\minhagamemode\gamemodes\main.pwn:6487
[debug] #1 004d6994 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=3.30000, weaponid=54, bodypart=3) at C:\Users\W10\Desktop\minhagamemode\gamemodes\main.pwn:6516
*LINHA 6516
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(IsPlayerInSafe(playerid)) {
BloquearDanoAreaNeutra(issuerid,playerid);
return 1;
}
if(IsPlayerInPrisao(playerid)) {
BloquearDanoAreaNeutra(issuerid,playerid);
Kick(issuerid);
return 1;
}
if(IsPlayerInLevel(playerid)) {
BloquearDanoAreaNeutra(issuerid,playerid);
return 1;
}
* LINHA 6487
stock BloquearDanoAreaNeutra(playerid)
{
for(new text; text < 6; text++) {
PlayerTextDrawShow(playerid, textavisosantidm[text][playerid]);
}
SetTimerEx("TirarTextdrawDM", 4000*3, false, "d", playerid);
ApplyAnimation(playerid,"PED","handscower",4.1,0,1,1,0,0);
}
return 1;
}