SA-MP Forums Archive
foreach question - 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: foreach question (/showthread.php?tid=406979)



foreach question - gabyk - 12.01.2013

Hi, i have a loop for exemple:

pawn Код:
for ( new i; i < rows; i++ )
{
     // actions
}
'rows' is a variable... and in foreach i have a BIG PROBLEM.
HOW THE FUCK i make a Iterator with variable value?

Who can convert me the 'for' loop in 'foreach' ?