Raised This Month: $ Target: $400
 0% 

Duplicate Case Error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
RandomUser
Junior Member
Join Date: Jun 2011
Old 02-18-2012 , 11:17   Duplicate Case Error
Reply With Quote #1

I'm getting error 040: duplicate "case" label (value 2) for LR_RAMBO, LR_DUDE, and LR_CRAZY. I know what duplicate case means, I just can't figure out how I'm duplicating a case. And if I'm not, then do I need to see how something is defined to fix it? I'd appreciate any feedback. Thanks.

PHP Code:
enum
{
    
LR_NONE = -1,
    
LR_KNIFE,
    
LR_S4S,
    
LR_NADE,
    
LR_RACE,
    
LR_SPRAY,
    
LR_GUNTOSS,
    
LR_NADETOSS,
    
LR_SCOUT,
    
LR_SHOTGUN,
    
LR_SHOWDOWN,
    
LR_GLOBAL_WAR,
    
LR_CUSTOM,
    
    
MAX_GAMES
}

enum
{
    
LR_NONE = -1,
    
LR_SPECIAL,
    
LR_FREE,
    
LR_RAMBO,
    
LR_DUDE,
    
LR_CRAZY,
    
LR_HIDDEN,
    
    
MAX_REBELS
}

public 
Ham_WeaponTouch_PreiEntityid )
{
    if( !
is_user_aliveid ) )
        return 
HAM_IGNORED;
    
    new 
CsTeams:team cs_get_user_teamid );
    
    switch( 
g_iCurrentGame )
    {
        case 
LR_KNIFELR_S4SLR_NADELR_RACELR_SPRAYLR_NADETOSSLR_SCOUTLR_SHOTGUNLR_SHOWDOWNLR_GLOBAL_WARLR_CUSTOMLR_HIDDEN:
        {
            return 
HAM_SUPERCEDE;
        }
        
        case 
LR_RAMBOLR_DUDELR_CRAZY:
        {
            if( 
team == CS_TEAM_T )
                return 
HAM_SUPERCEDE;
        }
    }
    return 
HAM_IGNORED;


Last edited by RandomUser; 02-18-2012 at 11:22.
RandomUser 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 02:18.


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