15.05.2013, 08:35
(
Последний раз редактировалось CreativityLacker; 15.05.2013 в 13:27.
)
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)) );
}