Switch inside 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: Switch inside switch? (
/showthread.php?tid=606389)
Switch inside switch? -
Lajko1 - 03.05.2016
so like this...
Code:
switch(gunid)
{
case 24:
{
switch(bodypart)
{
case 3:
{
// something
}
//another case
}
}
}
can I use that?
Re: Switch inside switch? -
Sawalha - 03.05.2016
yeah, that's possible, since it compiles without errors, and no bugs are caused nor complications / complexities
Re: Switch inside switch? -
Lajko1 - 03.05.2016
Thank you, wasn't sure cos it's like wierd :P, repped you for fast answer