14.12.2014, 15:57
Using 256 cells is useless here, 144 would be pretty enough. If you're following Abagail's code, you have to either check if player is connected while replying or else set the array to INVALID_PLAYER_ID.
Based on the latter one;
Based on the latter one;
pawn Код:
public OnPlayerDisconnect(playerid)
{
for(new i = 0, j = GetMaxPlayers(); i< j; i++)
{
if(LastPMed[playerid] != i) continue;
LastPMed[playerid] = INVALID_PLAYER_ID;
}
return 1;
}