Foreach help
#1

Hello, i need some help with foreach.

How to convert:

Код:
for(new i; i < sizeof(ZabranjeneRijeci); i++)
to foreach?


Is this good?

Код:
for(new i=1;i < MAX_PLAYERS;i++)
to

Код:
foreach(Player, i)
Reply
#2

I don't really like 'foreach' include, just use loops.
like this one to loop all players:
PHP код:
 for(new GetPlayerPoolSize(); > -1IsPlayerConnected(i); %i--) 
Reply
#3

Quote:
Originally Posted by PawnHunter
Посмотреть сообщение
I don't really like 'foreach' include, just use loops.
like this one to loop all players:
PHP код:
 for(new GetPlayerPoolSize(); > -1IsPlayerConnected(i); %i--) 
i seen most post where says: use foreach becouse is faster

Thanks for your reply bro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)