Tiny stupid question
#1

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
Reply
#2

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
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)