01.09.2014, 04:59
Your calculations is way off. Try this:
pawn Код:
new Float:pos[3], Float:speed, speed_int;
GetVehicleVelocity(GetPlayerVehicleID(playerid), pos[0], pos[1], pos[2]);
speed = floatsqroot(((pos[0] * pos[0]) + (pos[1] * pos[1])) + (pos[2] * pos[2])) * 181.1166672;
speed_int = floatround(speed, floatround_round);