[Include] Days [BETA]
#1

Days

No known bugs as of now, although if you find some, report them

IF no bugs are found, next update will be in July.


pawn Код:
#define     JANUARY     1
#define     FEBRUARY    2
#define     MARCH       3
#define     APRIL       4
#define     MAY         5
#define     JUNE        6
#define     JULY        7
#define     AUGUST      8
#define     SEPTEMBER   9
#define     OCTOBER     10
#define     NOVEMBER    11
#define     DECEMBER    12

#define     MONDAY          0
#define     TUESDAY         1
#define     WEDNESDAY       2
#define     THURSDAY        3
#define     FRIDAY      4
#define     SATURDAY        5
#define     SUNDAY      6

pawn Код:
native GetMonthName(month); //number of month OR the NAME of the month in CAPITAL LETTERS
native GetDayName(day); // NUMBER of DAY or name of DAY in CAPITAL letters [0 TO 6]
native GetCurrentMonth(); // returns the current month
native GetCurrentDay(); // returns the current DATE
native IsLeapYear(year); // returns if the INPUT YEAR is a LEAP YEAR
native GetMonthDays(month); // RETURNS THE NUMBER OF DAYS OF THE INPUT MONTH
native GetDay(date, month, year); // returns the >> DAY << (NOT DATE)

BETA V1 - http://pastebin.com/9tH7Bkqp


Test code -

pawn Код:
main()
{
    printf("%s", GetDayName(GetDay(15, JULY, 2013)) );
}
Reply


Messages In This Thread
Days [BETA] - by CreativityLacker - 15.05.2013, 08:35
Re: Days [BETA] - by CreativityLacker - 15.05.2013, 09:32
Re: Days [BETA] - by CreativityLacker - 15.05.2013, 11:55
Re: Days [BETA] - by Dzines4SAMP - 15.05.2013, 12:07
Re: Days [BETA] - by CreativityLacker - 15.05.2013, 13:31
Re: Days [BETA] - by steki. - 15.05.2013, 13:41
Re: Days [BETA] - by Badarau - 22.05.2013, 17:28
Re: Days [BETA] - by CreativityLacker - 22.05.2013, 18:16
Re: Days [BETA] - by Badarau - 23.05.2013, 07:55
Re: Days [BETA] - by Kiweeh - 23.05.2013, 13:09
Re: Days [BETA] - by Dragony92 - 26.05.2013, 13:19
Re: Days [BETA] - by CreativityLacker - 26.05.2013, 16:57
Re: Days [BETA] - by Dragony92 - 26.05.2013, 20:51

Forum Jump:


Users browsing this thread: 1 Guest(s)