Question about 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: Question about foreach. (
/showthread.php?tid=407095)
Question about foreach. -
Shetch - 12.01.2013
How can I use the foreach loop to loop through my properties for example?
I know how to loop through players, but lets say I have a define that defines my max properties.
#define MAX_PROPERTIES 100
How can I loop through them using foreach?