Debug info.
#1

Код:
[09:36:19] [debug] Run time error 4: "Array index out of bounds"
[09:36:19] [debug]  Accessing element at negative index -1
[09:36:19] [debug] AMX backtrace:
[09:36:19] [debug] #0 001c51d4 in public Streamer_OnPlayerDisconnect () from war.amx
[09:36:19] [debug] #1 native CallLocalFunction () [080d2870] from samp03svr
[09:36:19] [debug] #2 00008f88 in ?? () from war.amx
[09:36:19] [debug] #3 00002ee4 in public Itter_OnPlayerDisconnect () from war.amx
[09:36:19] [debug] #4 native CallLocalFunction () [080d2870] from samp03svr
[09:36:19] [debug] #5 00000d34 in public OnPlayerDisconnect () from war.amx
[09:36:19] [part] Raimondas_Gangas has left the server (1:1)
I use foreach and streamer includes. In my gamemode OnPlayerDisconnect, i always check if variable is not -1. I just kill timers, sometimes they can be -1 if they are no active. Is there can be a problem? but not always, just sometimes i get this debug error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)