30.08.2017, 01:57
I'm having a problem:
This continues to return INVALID_PLAYER_ID and I haven't got a single clue as to why.
The error originates from the strfind.
It calls INVALID_PLAYER_ID for ReturnName() and causes it to crash I assume.
Код:
for(new f = 0, t = 0; f < MAX_PLAYERS, t < 5; f++)
{
if(!IsPlayerConnected(f))
continue;
if(strfind(ReturnName(f, 0), params, true) != -1)
{
matchesFound[t] = f;
t++;
}
}
Код:
[debug] Attempted to read/write array element at index 65536 in array of size 50
It calls INVALID_PLAYER_ID for ReturnName() and causes it to crash I assume.
Код:
[debug] #0 0005856c in ReturnName (playerid=65536, underScore=0) at macc.pwn:7239

