02.02.2015, 03:09
You can't use else-statements in a switch. You could however use a default-statement:
pawn Код:
switch(something)
{
case 0: { if something is '0' }
case 1: { if something is '1' }
case 2, 3, 4: { if something is 2, 3 or 4 }
case 5..20: { if something is between 5 and 20 }
default: { this is like an 'else-statement' if no other matches were found }
}