converting normal loop to foreach.
#2

You can only use foreach to loop through all the Pickups only if you've created an Iterator for all the created pickups. But you can use foreach for players.
pawn Код:
foreach (new i : Player)
{
    // code;
}
Reply


Messages In This Thread
converting normal loop to foreach. - by [D]ry[D]esert - 06.01.2013, 08:55
Re: converting normal loop to foreach. - by Konstantinos - 06.01.2013, 08:58
Re: converting normal loop to foreach. - by [D]ry[D]esert - 06.01.2013, 09:05
Re: converting normal loop to foreach. - by Konstantinos - 06.01.2013, 09:11
Re: converting normal loop to foreach. - by [D]ry[D]esert - 06.01.2013, 09:17

Forum Jump:


Users browsing this thread: 1 Guest(s)