How can I check which day is today ?
#1

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

Have you heard of this?:

Reply
#3

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.
Reply
#4

pawn Код:
native GetTodaysFuckingDate(month, day, year, hour, minute, second);
Reply
#5

Код:
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".
Reply
#6

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

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;
}
Reply
#8

I need name of the day not the number........ [Sunday Monday..........]
Reply
#9

https://sampforum.blast.hk/showthread.php?tid=286939
Reply
#10

thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)