Switch/Case error - 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 error (
/showthread.php?tid=243061)
Switch/Case error -
Typhome - 21.03.2011
// Fixed, got sloution.
Re: Switch/Case error -
iggy1 - 21.03.2011
You can't case a variable it must be a constant. Ie, "case 1:"
Re: Switch/Case error -
Typhome - 21.03.2011
// Fixed, got sloution.
Re: Switch/Case error -
iggy1 - 21.03.2011
You have to use an "if".
Re: Switch/Case error -
Typhome - 21.03.2011
Quote:
Originally Posted by iggy1
You have to use an "if".
|
Yeah, i was just try about this if.