SA-MP Forums Archive
2 Problems - 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: 2 Problems (/showthread.php?tid=163593)



2 Problems - ScottCFR - 28.07.2010

Problem Number 1:

I added a in-game clock. Using TogglePlayerClock, the clock gets a minute in about 20 seconds. A way to fix it?

Problem Number 2:

I am logging how long people are in my server, How ever it says their in the server for 15+ hours which there really in there for less then 5 minutes. Could that be caused by the above problem?


Re: 2 Problems - ScottCFR - 28.07.2010

**bump**


Re: 2 Problems - nemesis- - 28.07.2010

Quote:
Originally Posted by ScottCFR
Посмотреть сообщение
Problem Number 1:

I added a in-game clock. Using TogglePlayerClock, the clock gets a minute in about 20 seconds. A way to fix it?
That is how toggleplayerclock works. It simulates the single player clock.

Quote:

Problem Number 2:

I am logging how long people are in my server, How ever it says their in the server for 15+ hours which there really in there for less then 5 minutes. Could that be caused by the above problem?

Pastebin the code you're using to do this. Doesn't sound like you're calculating it correctly.


Re: 2 Problems - ScottCFR - 28.07.2010

http://pastebin.com/g6M16rsi

No I mean Toggle Player Clock makes the clock go really fast

Like usually it would change the hour in 60 seconds. It takes about 20 Seconds to change the hour.


Re: 2 Problems - Daren_Jacobson - 28.07.2010

Play single player, look at the clock in the top right, see?


Re: 2 Problems - ScottCFR - 28.07.2010

It doesn't go that fast. Go to my server, spawn and you'll see what I mean...

IP is in my signature

EDIT: I noticed if I am in DM or Derby it doesn't make the time go that fast.


Re: 2 Problems - ScottCFR - 29.07.2010

***BumP***


Re: 2 Problems - Vince - 29.07.2010

I suggest you sync the time for every player every 1 second, using SetPlayerTime.