18.02.2014, 02:28
Well, foreach wouldn't work there anyways. The Player iterator only contains a list of CONNECTED player IDs, and since nobody is actually connected when the game-mode starts... the list is empty. You should use a for() loop for that instead...
Nevertheless, make sure you're using the correct foreach version for that foreach(new i : Player) syntax- that wasn't the original one.
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)