OnPlayerDeath script STOP! (DEBUG+PASTEBIN + ALL) HELP MEE
#1

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 (
Reply
#2

HEEEEEEEEEEEEEEEEEELP MEEEEEEEEEEEEEEEEEEEEEEEE!!! ((((( ((
Reply
#3

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
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)