How can i adjust the hour?
#1

How can i add +5 hours on this clock?

pawn Код:
public clock(){
    SyncTime();
    new
        string[256],
        year,
        month,
        day,
        hours,
        minutes,
        seconds;
    getdate(year, month, day);gettime(hours, minutes, seconds);
    format(string, sizeof string, "~b~~h~~h~~h~%d/%s%d/2012", day, ((month < 10) ? ("0") : ("")) ,month);TextDrawSetString(clock1, string);
    format(string, sizeof string, "~b~~h~~h~~h~%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);TextDrawSetString(clock2, string);
    TextDrawShowForAll(clock1);TextDrawShowForAll(clock2);}
Reply


Messages In This Thread
How can i adjust the hour? - by sampmann - 20.12.2012, 17:26
Re: How can i adjust the hour? - by Alexander_Petrov - 20.12.2012, 17:44
Re: How can i adjust the hour? - by sampmann - 20.12.2012, 17:53
Re: How can i adjust the hour? - by Alexander_Petrov - 20.12.2012, 17:57
Re: How can i adjust the hour? - by Alexander_Petrov - 20.12.2012, 18:04
Re: How can i adjust the hour? - by sampmann - 20.12.2012, 18:14
Re: How can i adjust the hour? - by Alexander_Petrov - 20.12.2012, 18:29
Re: How can i adjust the hour? - by sampmann - 20.12.2012, 18:46
Re: How can i adjust the hour? - by Alexander_Petrov - 20.12.2012, 18:52
Re: How can i adjust the hour? - by sampmann - 20.12.2012, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)