SA-MP Forums Archive
Time Issue - 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 Issue (/showthread.php?tid=320214)



Time Issue - Abreezy - 22.02.2012



How could I fix this issue? This is the code:

pawn Код:
new
         string[ 128 ],
         Hour,
         Minute,
         Second,
         Year,
         Month,
         Day;

    getdate(Year, Month, Day);
    gettime(Hour, Minute, Second);

format(string, sizeof(string), "Time:     "COL_GREEN"%%02d:%02d", Hour,Minute);
    SendClientMessage(playerid, COLOR_WHITE, string);
Thank you advance!



Re: Time Issue - coole210 - 22.02.2012

pawn Код:
new
         string[ 128 ],
         Hour,
         Minute,
         Second,
         Year,
         Month,
         Day;

    getdate(Year, Month, Day);
    gettime(Hour, Minute, Second);

format(string, sizeof(string), "Time:     "COL_GREEN"%02d:%02d", Hour,Minute);
    SendClientMessage(playerid, COLOR_WHITE, string);



Re: Time Issue - Abreezy - 22.02.2012

Lol. Thank you for noticing my obvious issue, I feel stupid sometimes, I should stop rushing .