Question about loops (and break;) - 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 loops (and break;) (
/showthread.php?tid=524944)
Question about loops (and break;) -
kamiliuxliuxliux - 09.07.2014
pawn Код:
for(new a = 0; a < 10; a++) // first loop
{
for(new i = 0; i < 30; i++) // second loop
{
break;
}
}
Now we have this loop-in-loop and when I write break; which loop will be breaked out? First or second?
Re: Question about loops (and break;) -
ikey07 - 09.07.2014
second loop, , break stops previous for()
Re: Question about loops (and break;) -
kamiliuxliuxliux - 09.07.2014
thanks