Convert a timestamp to countdown
#1

Hello guys,

I want to convert a timestamp to a hour, minute and second countdown in SA:MP, (xx hours, xxminutes and xxseconds left to the next period) but I don't know how. Does anyone know, how it works? I thanks for any reply.

Regards, ThomasTailor93

------------------------------------------------------------------------------------------

Ok, well. I think, I need to explain a bit more (just my fault for bad explanation).

I've muted a guy for 500 minutes (~ 8,3** hours).

Time, when I muted him: 1335060000 (4:00am CET)
Time, when he become unmuted: 1335090000 (12:20pm CET)

Now It is 5:00am CET and the muted guy wants to know, how long he is muted. So he checks it with /mutetime and the server will tell: "You are in 7 hours, 20 minutes and 0 seconds unmuted."

I really don't know how to do it in PAWN. I hope, anyone can help me.

Regards, ThomasTailor93
Reply


Messages In This Thread
Convert a timestamp to countdown - by ThomasTailor93 - 21.04.2012, 23:33
Re: Convert a timestamp to countdown - by [HiC]TheKiller - 22.04.2012, 00:07
AW: Convert a timestamp to countdown - by ThomasTailor93 - 22.04.2012, 02:01
Re: Convert a timestamp to countdown - by MP2 - 22.04.2012, 02:15
AW: Convert a timestamp to countdown - by ThomasTailor93 - 22.04.2012, 02:43
Re: Convert a timestamp to countdown - by MP2 - 22.04.2012, 02:49
AW: Convert a timestamp to countdown - by ThomasTailor93 - 22.04.2012, 03:00
AW: Convert a timestamp to countdown - by ThomasTailor93 - 22.04.2012, 14:39

Forum Jump:


Users browsing this thread: 1 Guest(s)