How can I check which day is today ?
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)