16.03.2015, 17:19
Quote:
A cheater came by and spoofed some kills, the anticheat took care of him later. But until then, the server debugged the following:
Код:
22:34:29] [debug] Run time error 4: "Array index out of bounds" [22:34:29] [debug] Accessing element at index 333 past array upper bound 199 [22:34:29] [debug] AMX backtrace: [22:34:29] [debug] #0 0004c7c8 in public OnPlayerDeath (15, 333, 18) from v8.36.amx [22:34:29] [debug] Run time error 4: "Array index out of bounds" [22:34:29] [debug] Accessing element at index 630 past array upper bound 199 [22:34:29] [debug] AMX backtrace: [22:34:29] [debug] #0 0004c7c8 in public OnPlayerDeath (15, 630, 39) from v8.36.amx [22:34:29] [debug] Run time error 4: "Array index out of bounds" [22:34:29] [debug] Accessing element at index 575 past array upper bound 199 [22:34:29] [debug] AMX backtrace: [22:34:29] [debug] #0 0004c7c8 in public OnPlayerDeath (15, 575, 26) from v8.36.amx Should i need to check under every function if the ids are between MAX_PLAYERS, 0 and if INVALID_PLAYER_ID to avoid this problem? |