#1

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);
vSpeed value is 35(float), but it doesnt format?
What's wrong?
Reply
#2

If I'm not mistaken, you can only use integer values in a switch.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)