SA-MP Forums Archive
problem over getdate and gettime - 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: problem over getdate and gettime (/showthread.php?tid=583973)



problem over getdate and gettime - Lirbo - 01.08.2015

Let's say it's 14:00 now, when i'd get the time it'd type it like this: 14:0 instead of 14:00 how can i fix this shit?


Re: problem over getdate and gettime - CodeStyle175 - 01.08.2015

simple
PHP код:
format(string,sizeof(string),"%02d:%02d",hour,minute);