15.01.2014, 20:03
May also be worth noting that in some cases the if statement is actually better. For example:
In this case because of the huge range, the if statement is better than the switch.
pawn Code:
if(Cash >= 1500 && Cash <= 8000)
{
// do whatever
}
switch(Cash)
{
case 1500..8000:
{
// do whatever
}
}