Quote:
Originally Posted by SkumTomteN
But there is a problem, you cant add more then 1 thing lets say if i do like this :
Code:
case 0:
{
1 thing
1 thing
1 thing
}
If i compile it. it will show this error :
Code:
// C:\Users\Billy\Desktop\Compiler\zp_hero.sma(65) : error 002: only a single st
atement (or expression) can follow each "case"
|
There is nothing wrong with that code. You can have as many lines as you wish inside of a case as long as you have the braces (which you have). So, I can't believe that the error is coming from this switch() structure. If you want further help, you will need to attach your whole plugin to your next post.
EDIT:
If I had to guess, you are not closing all of your braces. HINT: The switch that you posted is not complete. If that hint doesn't help, attach your whole plugin
__________________