25.08.2015, 17:06
pawn Код:
for(new i=0; i <= GetPlayerPoolSize(); i++)
{
if(IsPlayerConnected(i) && inevent[i] == 1)
{
// code
break;
}
}
I want to point out that using INVALID_PLAYER_ID instead of -1 will make the code much more organized and readable.
Also, there's no need to count the player amount, atleast that's not how I would do it.