SA-MP Forums Archive
[HELP] DEBUG OnPlayerDeath - 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: [HELP] DEBUG OnPlayerDeath (/showthread.php?tid=398071)



[HELP] DEBUG OnPlayerDeath - cristi_bubu - 08.12.2012

How solve this problem?

[09:20:05] [debug] Run time error 4: "Array index out of bounds"
[09:20:05] [debug] Accessing element at index 65535 past array upper bound 149
[09:20:05] [debug] AMX backtrace:
[09:20:05] [debug] #0 00016a28 in public OnPlayerDeath () from eXtream.amx

Check OnPlayerDeath in GameMode:

http://pastebin.com/GvAySsQS


Re: [HELP] DEBUG OnPlayerDeath - WooTFTW - 08.12.2012

Just check if the killerid is not invalid player id.
pawn Код:
if(killerid != INVALID_PLAYER_ID)
{