Switch case instead of "if" and "else if" - 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: Switch case instead of "if" and "else if" (
/showthread.php?tid=110806)
Switch case instead of "if" and "else if" -
Devine - 28.11.2009
I'm trying to create this LoadVehicles from SouthWestRP into a switch case function to see if it'll solve my problem, could someone please show me how to do so? I tried it earlier but I ended up with a ton of errors
http://pawn.pastebin.com/m696f03a6
Re: Switch case instead of "if" and "else if" -
GTA_Rules - 28.11.2009
Don't use a switch case for that. I suggest fixing the if, else if structure, or try debugging.