18.03.2011, 23:14
pawn Код:
vSpeed = vSpeed * 1.4;
printf("Speed:%0.0f", vSpeed);
switch(vSpeed)
{
case 0..50:
{
format(km_str, 22, "~w~%0.0fkm/h", vSpeed);
}
case 51..300:
{
format(km_str, 22, "~r~%0.0fkm/h", vSpeed);
}
}
printf("Veh speed: %s", km_str);
What's wrong?