Raised This Month: $ Target: $400
 0% 

Make 2 tasks chosen randomly. (Solved)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-28-2013 , 06:11   Re: Make 2 tasks chosen randomly. (how?)
Reply With Quote #4

Quote:
Originally Posted by SkumTomteN View Post
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
__________________

Last edited by fysiks; 12-28-2013 at 06:15.
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode