Convert a timestamp to countdown
#2

pawn Код:
stock Countdown(&hours, &minutes, &seconds, countdown)
{
    new count = countdown - gettime();
    while(count > 3600)
    {
        hours ++;
        count = count - 3600;
    }
    while(count > 60)
    {
        minutes ++;
        count = count - 60;
    }
    seconds = count;
    retrun 1;
}
Do you mean something along the lines of that? Returns the hours, minutes and seconds from the current timestamp to the one specified.
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: 2 Guest(s)