30.09.2011, 23:51
I need explain how to make function that check which day is today[if you have ready it's better but if not I can make alone].
Thank you very much !
Thank you very much !
native GetTodaysFuckingDate(month, day, year, hour, minute, second);
new YEAR, MONTH, DAY, HOUR, MINUTE, SECOND; getdate(YEAR, MONTH, DAY); gettime(HOUR, MINUTE, SECOND); printf("%02d/%02d/%d - %02d:%02d", DAY, MONTH, YEAR, HOUR, MINUTE);
native GetTodaysFuckingDate(month, day, year, hour, minute, second);
if(strcmp(cmdtext, "/todayis", true) == 0)
{
new YEAR, MONTH, DAY, HOUR, MINUTE, SECOND;
getdate(YEAR, MONTH, DAY);
gettime(HOUR, MINUTE, SECOND);
SendClientMessage(playerid, -1 "Today is: %02d/%02d/%d - %02d:%02d", DAY, MONTH, YEAR, HOUR, MINUTE);
return 1;
}
return 0;
}