AdminsChat, Admins Warns
#7

foreach/y_iterate loops through connected players only, so basically it is recommended than normal loops as it uses lists. What Zeus666 posted is the old syntax which is not used anymore, the new syntax is:
pawn Код:
foreach(new i : Player)
with "i" being the iterator variable and "Player" the iterator for players (there are more iterators about NPCs, vehicles in the latest version and you can also make your own).
Reply


Messages In This Thread
AdminsChat, Admins Warns - by oktokt1 - 19.07.2016, 08:29
Re: AdminsChat, Admins Warns - by Zeus666 - 19.07.2016, 08:58
Re: AdminsChat, Admins Warns - by UltraScripter - 19.07.2016, 09:07
Re: AdminsChat, Admins Warns - by Sjn - 19.07.2016, 09:10
Re: AdminsChat, Admins Warns - by oktokt1 - 19.07.2016, 09:35
Re: AdminsChat, Admins Warns - by Stinged - 19.07.2016, 09:36
Re: AdminsChat, Admins Warns - by Konstantinos - 19.07.2016, 09:37
Re: AdminsChat, Admins Warns - by oktokt1 - 19.07.2016, 15:28
Re: AdminsChat, Admins Warns - by oktokt1 - 19.07.2016, 19:28
Re: AdminsChat, Admins Warns - by Konstantinos - 19.07.2016, 21:01

Forum Jump:


Users browsing this thread: 1 Guest(s)