SA-MP Forums Archive
timestamp problem - 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: timestamp problem (/showthread.php?tid=464808)



timestamp problem - PapaSmerf - 19.09.2013

I'm trying to do convert timestamp to hours and minutes... but when i did this:

Код:
format(str, sizeof(str), "~b~~h~%02d~w~h ~b~~h~%02d~w~min", (OnlineTime[playerid]-gettime()/3600), ((OnlineTime[playerid]-gettime()/60))%60);
TextDrawSetString(pPanelDown[3][playerid], str);
i got it: http://i.imgur.com/XlVCQic.png

What's the problem?