foreach
#1

Hello. I want to be sure.

I just change all my normal loops like this

pawn Код:
for (new i = 0; i < MAX_PLAYERS; i++)
to this?

pawn Код:
foreach (Player, i)
{
    // code
}
Also how can I convert these loops

pawn Код:
for (pID=0; pID<=MAX_PLAYERS; pID++)
and this

pawn Код:
for(new i; i < sizeof(Seats); i++)
Thanks
Reply


Messages In This Thread
foreach - by fissekarl - 29.04.2011, 18:58
Re: foreach - by fissekarl - 29.04.2011, 19:04

Forum Jump:


Users browsing this thread: