element at index 65535 past array upper bound 49
#1

Crashdetect plugin keeps spamming this in console.

Код:
[17:20:47] [debug]  Accessing element at index 65535 past array upper bound 49
[17:20:47] [debug] AMX backtrace:
[17:20:47] [debug] #0 00228110 in public SecRoutine () from NytLoppuHelvetti.amx
[17:20:52] [debug] Run time error 4: "Array index out of bounds"
[17:20:52] [debug]  Accessing element at index 65535 past array upper bound 49
[17:20:52] [debug] AMX backtrace:
[17:20:52] [debug] #0 00228110 in public SecRoutine () from NytLoppuHelvetti.amx
[17:20:58] [debug] Run time error 4: "Array index out of bounds"
[17:20:58] [debug]  Accessing element at index 65535 past array upper bound 49
[17:20:58] [debug] AMX backtrace:
[17:20:58] [debug] #0 00228110 in public SecRoutine
This is what I use
pawn Код:
for(new i=0; i < MAX_PLAYERS; i++)
    {
    if(!IsPlayerConnected(i) || (i == INVALID_PLAYER_ID)) continue;
    if((i != INVALID_PLAYER_ID) && IsPlayerConnected(i) && spawned[i] == 1 && !IsPlayerNPC(i))
    {

}
 }
How can I fix this problem if this script can't avoid that error?

My MAX_PLAYERS IS DEFINED as 50.
Reply


Messages In This Thread
element at index 65535 past array upper bound 49 - by liinor - 09.10.2014, 16:55
Re: element at index 65535 past array upper bound 49 - by kaisersouse - 09.10.2014, 16:57
Re: element at index 65535 past array upper bound 49 - by liinor - 09.10.2014, 16:59
Re: element at index 65535 past array upper bound 49 - by kaisersouse - 09.10.2014, 17:03

Forum Jump:


Users browsing this thread: 1 Guest(s)