Radar Command Sending Wrong Message
#2

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);
Reply


Messages In This Thread
Radar Command Sending Wrong Message - by austin070 - 01.09.2014, 04:48
Re: Radar Command Sending Wrong Message - by SickAttack - 01.09.2014, 04:59
Re: Radar Command Sending Wrong Message - by austin070 - 01.09.2014, 05:01
Re: Radar Command Sending Wrong Message - by SickAttack - 01.09.2014, 05:21

Forum Jump:


Users browsing this thread: 2 Guest(s)