02.05.2017, 16:30
My server's max player slot is defined as 100, but I noticed this one error in the log;
How did id 274 get passed to the damagedid argument when the max players is defined 100? Is there some sort of hacking tool that the players are using to fake these or the callback itself returns something like this if the damagedid is paused? Because the IsPlayerPaused function also gave the same error along with this callback and I have checked if the damagedid is paused or not before executing further codes inside the callback. I will provide the code if needed.
This is very weird and I noticed this for the first time, couldn't find out the possible solution to fix this. Any help?
Код:
[16:20:50] [debug] Accessing element at index 274 past array upper bound 99 [16:20:50] [debug] AMX backtrace: [16:20:50] [debug] #1 00033234 in public OnPlayerGiveDamage (playerid=3, damagedid=274, Float:amount=-0.00000, weaponid=62, bodypart=6) ... [16:20:50] [debug] Run time error 4: "Array index out of bounds"
This is very weird and I noticed this for the first time, couldn't find out the possible solution to fix this. Any help?