i'm trying to make a command group hierarchy.
if the players primary group is any of the four in the "case" statement, he has access to all of that groups commands.
but as soon as i increase any of the "case" values above two characters, it throws many compile errors.
stock
IsPlayerGroup_Mod(Player[], Primary_Group[])
{
switch (Primary_Group[0])
{
// case 'a', 'b', 'c', 'd' : // -> works
// case '1', '2', '3', '4': // -> This works too
case 'USER', 'ADMIN', 'HALF-ADMIN', 'MODERATOR': // -> but this dosnt work, why ?
{
return 1;
}
}
return 0;
}
calling syntax: IsPlayerGroup_Mod("Ramandu", "ADMIN");
how do i solve it ?
thankyou very much