#1

How can i enter a time and a date in a string?
Reply
#2

https://sampwiki.blast.hk/wiki/Gettime
Reply
#3

new day,month,year,hour,mins,sec;
gettime(hour,mins,sec);
getdate(day,month,year);
pawn Код:
if(!strcmp(cmd,"/time",true))
{
  format(string,sizeof(string),"The date is now: %d/%d/%d, The time is now: %d:%d:%d",day,month,year,hour,mins,sec);
  return SendClientMessage(playerid,0xFFFFFFAA,string);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)