04.08.2016, 15:51
Code:
new Events[][][] { {"New Year's Day", 1, 1}, // You can add more "Events Text", "Day", "Month" {"Martin Luther King Day", 8, 1}, {"Valentine's Day", 14, 2}, {"Presidents's Day", 15", 2}, {"Easter Sunday", 3, 27}, {"Thomas Jefferson's Birthday", 13, 4}, {"Mother's Day", 8, 5}, {"Memorial Day", 30, 5}, {"Father's Day", 16, 6}, {"Independence Day" 4, 7}, {"Labor Day" 5, 9}, {"Columbos Day", 10, 10}, {"Halloween", 31, 10}, {"Election Day", 8, 11}, {"Veterans Day", 11, 11}, {"Christmas Eve", 24, 12}, {"Christmas Day", 25, 12}, {"Christmas Day Observed", 26, 12}, {"New Year's Eve", 31, 12}; forward LoadEvents(); public LoadEvents() { new day, month, year; getdate(day, month, year); if(day == Events[2] && month == Events[3]){ format(string, sizeof(string), "[BOT]: Happy %s (%02d/%02d)", Events[3], GetDay(day,month), GetMonth(month)); SendClientMessageToAll(-1, string); } return 1; }
Code:
(10) : error 009: invalid array size (negative, zero or out of bounds) (76) : error 033: array must be indexed (variable "Events")