SA-MP Forums Archive
Tiny stupid question - 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: Tiny stupid question (/showthread.php?tid=296044)



Tiny stupid question - nuriel8833 - 09.11.2011

I haven't scripted for like 7-8 months,so I don't remember a lot.
But I have one tiny stupid question - whenever I use print,does it automatically prints the date (not date,I mean hour/min/sec) or I need to use GetTime function in order to get the HMS and then print that?
Sorry for the stupid question


Re: Tiny stupid question - Stigg - 09.11.2011

pawn Код:
new year,month,day; getdate(year,month,day);
new hour,minute,second; gettime(hour,minute,second);
pawn Код:
printf("            Time: %d:%d:%d             ",hour,minute,second);
printf("            Date: %d/%d/%d             ",day,month,year);
https://sampwiki.blast.hk/wiki/Getdate
https://sampwiki.blast.hk/wiki/Gettime


Re : Tiny stupid question - decondelite - 09.11.2011

Open up your server_log.txt, you'll see.