Raised This Month: $ Target: $400
 0% 

Compile Error/Code Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-27-2011 , 07:01   Re: Compile Error/Code Help
Reply With Quote #1

You need to use one switch for each set of cases, like this:

PHP Code:
    switch(menuselection[id])
    {
        case 
MENU_MAIN:
        {
            switch(
key)
            {
                case 
0pokerank1(id);
                case 
1pokerank2(id);
                case 
2pokerank3(id);
                case 
3pokerank4(id);
            }
        }
        case 
MENU_POKE1:
        {
            switch(
key)
            {
                case 
0// function
                
case 1// function2
                // ...
            
}
        }
        
// ...
    

__________________

Last edited by fysiks; 07-27-2011 at 07:03.
fysiks is offline
Reply



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 00:55.


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