SA-MP Forums Archive
Why doesn't it displays? - 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: Why doesn't it displays? (/showthread.php?tid=286500)



Why doesn't it displays? - [GOD]Dragonster82 - 29.09.2011

Why doesn't this displays my server-sided time?

for(new i; i<MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
SetPlayerTime(i,THrs,Tsec);
}
}


Re: Why doesn't it displays? - [MWR]Blood - 29.09.2011

Well, what should it display?
The code you posted just sets everyone's time.


Re: Why doesn't it displays? - [GOD]Dragonster82 - 29.09.2011

Well.... It should display the time lol


Re: Why doesn't it displays? - [MWR]Blood - 29.09.2011

https://sampwiki.blast.hk/wiki/TogglePlayerClock


Re: Why doesn't it displays? - [GOD]Dragonster82 - 29.09.2011

I read that page already.. so what i'm missing is the update part?


Re: Why doesn't it displays? - MP2 - 29.09.2011

TogglePlayerClock enables the GTA clock which advances one minute every secnod. If you want to display the real world time you have to create a textdraw and have a repeating timer to update it.