Show code, case is not a function, don't place ( and ) after it.
I am assuming you're using switch().
Code:
switch(variable)
{
case 1: // variable is 1
case 2..5: // variable is between 2 and 5
default: // variable is none of above
}
If you use '8' it will be considered 8 as string, use that if you're checking a string.
Code:
new szText[] = "abc123"
switch(szText[0]) // "a"
{
case 'a': // this will trigger
}
switch(szText[4]) // "2"
{
case 2: // this won't trigger
case '2': // this one will trigger
}
__________________