Time h;min;sec 00:00:00
#1

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!
Reply
#2

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);
Reply
#3

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,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)