about switch
- 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: about switch (
/showthread.php?tid=661772
)
about switch -
3417512908
- 14.12.2018
is switch like c?
...if we don't add a "break" in case,do the next case will execute?
Re: about switch -
3417512908
- 14.12.2018
Quote:
Originally Posted by
******
No, switch in PAWN has no fall-through. It is more like
if
, in that each
case
can only be followed by a single statement (which might enclose more in braces):
thanks for ******