Raised This Month: $ Target: $400
 0% 

Switch statement returns errors


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Pantheon
Member
Join Date: Jan 2011
Old 01-13-2011 , 10:37   Switch statement returns errors
Reply With Quote #1

PHP Code:
public InvisRelease(id) {
    
set_task(0.1"SecondFunc"0)
    
    switch(
visTime) {
        case 
1:
            
set_task(10.0"Func"0)
        break;
        
        case 
2:
            
set_task(20.0"Func"0)
        break;
        
        case 
3:
            
set_task(30.0"Func"0)
        break;
        
        case 
4:
            
set_task(40.0"Func"0)
        break;
        
        case 
5:
            
set_task(50.0"Func"0)
        break;
        
        case 
6:
            
set_task(60.0"Func"0)
        break;
        
        case 
7:
            
set_task(70.0"Func"0)
        break;
        
        case 
8:
            
set_task(80.0"Func"0)
        break;
        
        case 
9:
            
set_task(90.0"Func"0)
        break;
        
        case 
10:
            
set_task(100.0"Func"0)
        break;
        
        case 
11:
            
set_task(110.0"Func"0)
        break;
    }

Any idea why it doesnt work properly?
Pantheon is offline
 


Thread Tools
Display Modes

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 01:58.


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