SA-MP Forums Archive
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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question (/showthread.php?tid=187929)



Question - Brian_Furious - 05.11.2010

I saw in some scripts the
pawn Код:
continue
code. Its the same thing of
pawn Код:
return 1



Re: Question - willsuckformoney - 05.11.2010

I kinda have the same question but with
pawn Код:
try
Someone knows.


Re: Question - MadeMan - 05.11.2010

return stops the function

https://sampwiki.blast.hk/wiki/Control_Structures#continue

EDIT:

break stops the loop

continue skips a loop iteration


Re: Question - Brian_Furious - 05.11.2010

Thanks MadeMan


Question - [NoV]LaZ - 05.11.2010

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
continue stops the loop

return stops the function

https://sampwiki.blast.hk/wiki/Control_Structures#continue
break ends the loop, continue skips a loop iteration.


Re: Question - MadeMan - 05.11.2010

Quote:
Originally Posted by [NoV]LaZ
Посмотреть сообщение
break ends the loop, continue skips a loop iteration.
Yes, my mistake, sorry.