SA-MP Forums Archive
... Units per hour? - 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)
+--- Thread: ... Units per hour? (/showthread.php?tid=312566)



... Units per hour? - iTorran - 21.01.2012

Well since GTA has its own "units" and KPH/MPH dosent look right on a speedo (90 mph when you appear to be going much faster)... I would like to know if its possible to output it in units per hour, to get a near enough accurate reading of the cars speed. I have tried a few ways but all have failed.


Re: ... Units per hour? - MP2 - 21.01.2012

If you check every second, times the distance by 3600 and you have your answer. (Could be wrong :/)


Re: ... Units per hour? - Kar - 21.01.2012

Quote:
Originally Posted by MP2
Посмотреть сообщение
If you check every second, times the distance by 3600 and you have your answer. (Could be wrong :/)
divide by 3600*


Re: ... Units per hour? - MP2 - 21.01.2012

No? If they travel 1 unit in a second, they're not going to travel less than that in 3600 times the length of time are they?