[HELP] how to calulate mph insted of kmh
#1

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

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
Reply
#3

That is MPH.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)