help loop foreach
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
pawn Код:
foreach(new i: Player)
becomes

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
Foreach is faster though.
I would definitely use foreach but the problem was I get this error

I already add #include <foreach>

Код:
 undefined symbol "foreach"
error 029: invalid expression, assumed zero
error 017: undefined symbol "Player"
fatal error 107: too many error messages on one lin
Reply


Messages In This Thread
help loop foreach - by kbalor - 25.09.2013, 15:40
Re: help loop foreach - by Konstantinos - 25.09.2013, 15:43
Re: help loop foreach - by kbalor - 25.09.2013, 15:45
Re: help loop foreach - by Konstantinos - 25.09.2013, 15:48
Re: help loop foreach - by kbalor - 25.09.2013, 16:19
Re: help loop foreach - by Konstantinos - 25.09.2013, 16:21
Re: help loop foreach - by iZN - 25.09.2013, 16:22
Re: help loop foreach - by Mean - 25.09.2013, 16:22
Re: help loop foreach - by kbalor - 25.09.2013, 16:40
Re: help loop foreach - by iZN - 25.09.2013, 18:38

Forum Jump:


Users browsing this thread: 1 Guest(s)