Question
#1

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

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

return stops the function

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

EDIT:

break stops the loop

continue skips a loop iteration
Reply
#4

Thanks MadeMan
Reply
#5

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.
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)