[Ajuda] Foreach - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Foreach (
/showthread.php?tid=646142)
Foreach -
Marllun - 11.12.2017
Eu queria saber como converter esses loops para os do foreach.
PHP код:
//Como esse loop seria no foreach?
for(new skins = 3; skins < 299; skins++)
ou esse
for(new i; i < 4; i++)
ou
while (idx < len)
ou
for(new i=num-1;i>-1;i--)
ou
for(new i;i<MAX_RACECHECKPOINTS;i++)
Re: Foreach -
Injury - 11.12.2017
Nгo hб necessidades de foreach nesses loops, a nгo ser o ъltimo.
Tutorial:
https://sampforum.blast.hk/showthread.php?tid=571159