• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Server] About Iterator & Foreach
#1
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-f...oreach.inc
  Reply
#2
The YSI readme files in the y foreach folder.
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply
#3
(2021-01-18, 06:10 PM)Pinch Wrote: The YSI readme files in the y foreach folder.
https://github.com/pawn-lang/YSI-Include...k-start.md
https://github.com/pawn-lang/YSI-Include...ach/api.md
Thanks.
  Reply