23.12.2011, 23:17
hi,
with if statements it works fine but as soon as i do it with switch case the compiler crashes, whats wrong with it?
regards.
with if statements it works fine but as soon as i do it with switch case the compiler crashes, whats wrong with it?
pawn Код:
switch(GetPlayerMoney(playerid))
{
case 1000000 .. 1999999:
{
SetPlayerArmour(playerid,10);
}
case 2000000 .. 2999999:
{
SetPlayerArmour(playerid,20);
}
case 3000000 .. 3999999:
{
SetPlayerArmour(playerid,30);
}
case 4000000 .. 4999999:
{
SetPlayerArmour(playerid,40);
}
}