How can I check which day is today ? -
tal_peretz - 30.09.2011
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 !
Re: How can I check which day is today ? -
skullmuncher1337 - 30.09.2011
Have you heard of this?:
Re: How can I check which day is today ? -
Kingunit - 01.10.2011
Quote:
Originally Posted by skullmuncher1337
Have you heard of this?:

|
Quote:
how to make function that check which day is today
|
Calendar isn't a function.
Re: How can I check which day is today ? -
skullmuncher1337 - 01.10.2011
pawn Код:
native GetTodaysFuckingDate(month, day, year, hour, minute, second);
AW: How can I check which day is today ? -
Awesome™ - 01.10.2011
Код:
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);
Will output "01/10/2011 - 3:11".
Re: How can I check which day is today ? -
knackworst - 01.10.2011
The samp functions with date and stuff are gmt... So
Use GeoIP plugin it tracks from what country a player is so the time will be correct for everybody...
Just search: GeoIP
Re: How can I check which day is today ? -
Super_Panda - 01.10.2011
pawn Код:
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;
}
Re: How can I check which day is today ? -
tal_peretz - 01.10.2011
I need name of the day not the number........ [Sunday Monday..........]
Re: How can I check which day is today ? -
Jafet_Macario - 01.10.2011
https://sampforum.blast.hk/showthread.php?tid=286939
Re: How can I check which day is today ? -
tal_peretz - 01.10.2011
thank you.