[Help] Foreach - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Foreach (
/showthread.php?tid=545131)
[Help] Foreach -
Rudimental - 06.11.2014
What is better to use and why ?
1.
Код:
for (new i = 0; i < MAX_PLAYERS; i++)
2.
Код:
foreach (new i : Player)
Re: [Help] Foreach -
M0HAMMAD - 06.11.2014
is better
Re: [Help] Foreach -
DavidBilla - 06.11.2014
Foreach is better, because it loops through only connected players automatically.
Re: [Help] Foreach -
Mitchelll - 06.11.2014
Foreach, because it is fast and it loops through only connected players.
Re: [Help] Foreach -
Rudimental - 06.11.2014
Thank you tell me where I can still download the latest version ?
Re: [Help] Foreach -
Rudimental - 06.11.2014
Thank you can lock