SA-MP Forums Archive
[HELP] how to calulate mph insted of kmh - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] how to calulate mph insted of kmh (/showthread.php?tid=242138)



[HELP] how to calulate mph insted of kmh - Tom1412 - 19.03.2011

hey how do i change my speedo from kmh to mph?

what i have atm

pawn Код:
Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)),  floatpower(Z, 2))), 100.0);



Re: [HELP] how to calulate mph insted of kmh - armyoftwo - 19.03.2011

pawn Код:
Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)),  floatpower(Z, 2))), 100.0);
new Float:mph = Speed / 1.6;
Should work


Re: [HELP] how to calulate mph insted of kmh - WackoX - 19.03.2011

That is MPH.