foreach errors
#4

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...

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
Nevertheless, make sure you're using the correct foreach version for that foreach(new i : Player) syntax- that wasn't the original one.
Reply


Messages In This Thread
foreach errors - by Aerotactics - 18.02.2014, 01:54
Re: foreach errors - by Dubya - 18.02.2014, 02:00
Re: foreach errors - by Aerotactics - 18.02.2014, 02:02
Re: foreach errors - by Scenario - 18.02.2014, 02:28
Re: foreach errors - by Scaleta - 18.02.2014, 02:49

Forum Jump:


Users browsing this thread: 1 Guest(s)