Crash detect , Debug. rep+
#5

Quote:
Originally Posted by Sithis
Посмотреть сообщение
[16:32:15] [debug] Accessing element at index 65535 past array upper bound 499
[16:32:15] [debug] AMX backtrace:
[16:32:15] [debug] #0 00032a60 in ?? (39, 65535, 53) from GM.amx
[16:32:15] [debug] #1 00006044 in public OnPlayerDeath (39, 65535, 53) from GM.amx

OnPlayerDeath was called with the parameters you see above. The killerid is 65535 (which is an INVALID_PLAYER_ID, because I guess your MAX_PLAYERS is 500).

In this scenario, this simply means there is no killer. However, your code assumes there is one because some method calls do not check if the killerid is invalid, such as:

PHP код:
pInfo[killerid][credits] += 1
That code is not checked for an INVALID_PLAYER_ID and as such, you are accessing an array element above the upper limit of MAX_PLAYERS (which I assume is 500 in this case).
Thank you. Problem Fixed, Rep+ed
Reply


Messages In This Thread
Crash detect , Debug. rep+ - by MarwanCartman - 13.05.2015, 14:34
Re: Crash detect , Debug. rep+ - by Sithis - 13.05.2015, 15:00
Re: Crash detect , Debug. rep+ - by MarwanCartman - 13.05.2015, 15:53
Re: Crash detect , Debug. rep+ - by Sithis - 13.05.2015, 16:51
Re: Crash detect , Debug. rep+ - by MarwanCartman - 13.05.2015, 20:18

Forum Jump:


Users browsing this thread: 2 Guest(s)