Crash detect - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Crash detect (
/showthread.php?tid=362713)
Crash detect -
CoDeZ - 25.07.2012
Hello guys , i installed Crash detect plugin into my game mode
And i am getting this error :
Код:
[14:26:31] [debug] Run time error 4: "Array index out of bounds"
[14:26:31] [debug] Accessing element at index 65535 past array upper bound 499
[14:26:31] [debug] AMX backtrace:
[14:26:31] [debug] #0 00014d54 in public OnPlayerDeath () from teehee.amx
I've increased all arrays under onplayerdeath but still , why then?
Can i even ignore this ?
Re: Crash detect -
CoDeZ - 25.07.2012
BUMP
Re: Crash detect -
Jefff - 25.07.2012
pawn Код:
new array[MAX_PLAYERS]; // MAX_PLAYERS = 500
public OnPlayerDeath(playerid,killerid,reason)
{
array[killerid]++;
return 1;
}
if player died ( /kill or blows up ) killerid is INVALID_PLAYER_ID -> 65535