i dont know what is the problem here
i got problem in the case
Code:
switch( GetUserItem( client ) )
{
case Laser: Players[ client ] [ Laser ] = true;
case TimerFreeze: Players[ client ] [ TimerF ] = true;
case SuperPunch: Players[ client ] [ LeeSinPunch ] = true;
case Poisened: Players[ client ] [ Poisen ] = true;
}
and here is the enum and new
Code:
enum _:ItemsInfo {
Laser,
TimerFreeze,
SuperPunch,
Poisened
};
new TheItem[ 33 ][ ItemsInfo ];
and the stock
Code:
stock GetUserItem( index )
{
for( new i = 0 ; i < ItemsInfo ; i ++ )
{
if( TheItem[ index ][ i ] )
{
return i;
}
}
return -1
}
and i didnt have any problem in the first 3 options but when i added the poisen its make in the case this lien Error
Error: Duplicate "case" label (value 3)