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_Pre( iEntity, id )
{
if( !is_user_alive( id ) )
return HAM_IGNORED;
new CsTeams:team = cs_get_user_team( id );
switch( g_iCurrentGame )
{
case LR_KNIFE, LR_S4S, LR_NADE, LR_RACE, LR_SPRAY, LR_NADETOSS, LR_SCOUT, LR_SHOTGUN, LR_SHOWDOWN, LR_GLOBAL_WAR, LR_CUSTOM, LR_HIDDEN:
{
return HAM_SUPERCEDE;
}
case LR_RAMBO, LR_DUDE, LR_CRAZY:
{
if( team == CS_TEAM_T )
return HAM_SUPERCEDE;
}
}
return HAM_IGNORED;
}