SA-MP Forums Archive
Loop, adding more than 1. ( Expression has no effect) - 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: Loop, adding more than 1. ( Expression has no effect) (/showthread.php?tid=481154)



Loop, adding more than 1. ( Expression has no effect) - [WSF]ThA_Devil - 14.12.2013

Hello, I've problems with trying to add more than 1 in loop.
Код:
for(new i = 15; i<200;i+5)
that gives me Expression has no effect, as well as I don't want to add i++ ) +1 each loop;

silly me, should have used i = i+5;



Re: Loop, adding more than 1. ( Expression has no effect) - Tagathron - 14.12.2013

I think you want this:
pawn Код:
for(new i = 15; i<200;i=i+5)
i=i+5 increases i for 5