How to know the day of the week?
#2

gettime function.
example:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  new day,month,year,hour,mins,sec,string[128];
  gettime(hour,mins,sec);
  getdate(day,month,year);
  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);
    SendClientMessage(playerid,0xFFFFFFAA,string);
    return true;
  }
return false;
}
Reply


Messages In This Thread
How to know the day of the week? - by x-cutter - 22.02.2009, 20:26
Re: How to know the day of the week? - by MenaceX^ - 23.02.2009, 14:06
Re: How to know the day of the week? - by yom - 23.02.2009, 14:34
Re: How to know the day of the week? - by x-cutter - 23.02.2009, 14:42
Re: How to know the day of the week? - by yom - 23.02.2009, 15:07
Re: How to know the day of the week? - by x-cutter - 23.02.2009, 15:12

Forum Jump:


Users browsing this thread: 1 Guest(s)