SA-MP Forums Archive
Time Convert - 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: Time Convert (/showthread.php?tid=664491)



Time Convert - NoteND - 02.03.2019

Hey!

I'm just wondering how to get this type of format

Minutes:Seconds:Miliseconds since race started. I got minutes and seconds working, but how do you calculate the miliseconds ?


Re: Time Convert - Jeffry - 02.03.2019

Use GetTickCount instead of gettime. It returns milliseconds.
Take the difference between the GetTickCount when the race started and the current GetTickCount and calculate the times.


Re: Time Convert - NoteND - 02.03.2019

Quote:
Originally Posted by ******
Посмотреть сообщение
Use GetTickCount.
Thanks both.