SA-MP Forums Archive
SetPlayerTime / Synced Time - Issue - 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: SetPlayerTime / Synced Time - Issue (/showthread.php?tid=342755)



SetPlayerTime / Synced Time - Issue - Kyle - 14.05.2012

Hi, I want to use SetPlayerTime, and use a variable to hold the hour and minute. But if I only setplayertime, Sometimes it's not synced and could be a couple seconds 'out'. If I call a function at 16.00 it could be 16.03 on the clock.

How can I fix this without using setplayertime every 10 seconds as if I do that the weather dont interpolate etc.

Thank you.


Re: SetPlayerTime / Synced Time - Issue - Face9000 - 14.05.2012

If you call a function at 16.00 but it's 16.03 on the clock,call it at 15:57.

*logic*


Re: SetPlayerTime / Synced Time - Issue - Kyle - 14.05.2012

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
If you call a function at 16.00 but it's 16.03 on the clock,call it at 15:57.

*logic*
I know, but it's not always 3 seconds out, it could be 1 second too late or 3 seconds late. It also could be early too. It's unpredictable...


Re: SetPlayerTime / Synced Time - Issue - Vince - 14.05.2012

I actually sync the time every 999 ms and I notice that the weather does interpolate.