Time h;min;sec 00:00:00 - 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 h;min;sec 00:00:00 (
/showthread.php?tid=342334)
Time h;min;sec 00:00:00 -
bleedis - 13.05.2012
Hey!
I want to know how to make that when time is going up it will not count as seconds whole time but changes to hours;mins;secs
here is code
pawn Код:
format(string, sizeof(string), "[AFK] %d sekundes", AFK[playerid]);
SetPlayerChatBubble(playerid, string, 0xFFFFFFFF, 10.0, 1000);
And other thing i want to know if chatbubble will work on this or here need 3dtext or something.
Thanks!
Re: Time h;min;sec 00:00:00 -
bleedis - 13.05.2012
I hate to double post but i think i did it. if someone will use search for this kind of problem for them, there is the code
pawn Код:
new string[128];
format(string, sizeof(string), "[AFK] %d:%d:%d", ((AFK[playerid]/1000/(60*60))%24),((AFK[playerid]/1000/60)%60),((AFK[playerid]/1000)%60));
SetPlayerChatBubble(playerid, string, 0xFFFFFFFF, 10.0, 1000);
Re: Time h;min;sec 00:00:00 -
Jonny5 - 13.05.2012
sorry i did not see this sooner or i would have helped!
+rep to you for actually posting your fix,
I see to many topics that people delete the contents of
after they fixed the problem, making others have to ask again!
regards,