SA-MP Forums Archive
OnPlayerDeath script STOP! (DEBUG+PASTEBIN + ALL) HELP MEE - 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: OnPlayerDeath script STOP! (DEBUG+PASTEBIN + ALL) HELP MEE (/showthread.php?tid=464091)



OnPlayerDeath script STOP! (DEBUG+PASTEBIN + ALL) HELP MEE - Kapone21 - 15.09.2013

SERVER_LOG WHEN I JUMP WITH 10 HP:
Код:
[12:47:59] [join] wildewill21 has joined the server (0:127.0.0.1)
[12:48:09] AdmWarning: wildewill21 has set wildewill21's hp to 10.
[12:48:41] [debug] Run time error 4: "Array index out of bounds"
[12:48:41] [debug]  Accessing element at index 65535 past array upper bound 499
[12:48:41] [debug] AMX backtrace:
[12:48:41] [debug] #0 0003a400 in public OnPlayerDeath () from gamemode.amx
[12:48:41] [death] wildewill21 died 54
PASTEBIN WITH MY ONPLAYERDEATH: http://pastebin.com/dnZ7dvex

Please help me to fix (( NOTHING WORK ON MY ONPLAYERDEATH ... help (


Re: OnPlayerDeath script STOP! (DEBUG+PASTEBIN + ALL) HELP MEE - Kapone21 - 15.09.2013

HEEEEEEEEEEEEEEEEEELP MEEEEEEEEEEEEEEEEEEEEEEEE!!! ((((( ((


Re: OnPlayerDeath script STOP! (DEBUG+PASTEBIN + ALL) HELP MEE - sarab_singh - 15.09.2013

Check i think that you have changed data type
like you have stored a number in integer format like 561651 and somewhere used it in string format like "561651" so it will use ascii code which will cause index out of bound error it can also be vice versa


Re: OnPlayerDeath script STOP! (DEBUG+PASTEBIN + ALL) HELP MEE - Misiur - 15.09.2013

The killerid is probably INVALID_PLAYER_ID (0xFFFF / 65535) and you are accessing a lot of arrays using killerid without checking if it's invald.