open.mp forum
[Server] About Iterator & Foreach - Printable Version

+- open.mp forum (https://forum.open.mp)
+-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
+--- Forum: Support (https://forum.open.mp/forumdisplay.php?fid=12)
+--- Thread: [Server] About Iterator & Foreach (/showthread.php?tid=1544)



About Iterator & Foreach - LinesinRows - 2021-01-18

Hello, I had looked this forum but i can't found any tutorial / usage. Is there any comprehensive tutorial for iterator??



Like this;



PHP Code:
new Iterator:Test<10>; Iter_Add(Test, 1); Iter_Add(Test, 2); Iter_Add(Test, 3); foreach (new i : Test)? { ? ?printf("%d", i); }



https://github.com/karimcambridge/samp-foreach/blob/master/foreach.inc


RE: About Iterator & Foreach - Pinch - 2021-01-18

The YSI readme files in the y foreach folder.


RE: About Iterator & Foreach - LinesinRows - 2021-01-20

(2021-01-18, 06:10 PM)Pinch Wrote: The YSI readme files in the y foreach folder.
https://github.com/pawn-lang/YSI-Includes/blob/5.x/YSI_Data/y_foreach/quick-start.md
https://github.com/pawn-lang/YSI-Includes/blob/5.x/YSI_Data/y_foreach/api.md
Thanks.