09.10.2014, 16:55
Crashdetect plugin keeps spamming this in console.
This is what I use
How can I fix this problem if this script can't avoid that error?
My MAX_PLAYERS IS DEFINED as 50.
Код:
[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
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))
{
}
}
My MAX_PLAYERS IS DEFINED as 50.