25.12.2015, 14:22
This can be possible if you fill an array every month or so (manually) with the Sat/Sun days using calender like this, 'MonthDays' array has all the Sat/Sun days in the month of January, 16.
Код:
new MonthDays[10] = {"2", "3", "9", "10", "16", "17", "23", "24", "30", "31"); stock IsWeekend() { new dd, mm, yy; getdate(yy, mm, dd); for(new i=0; i<10; i++) { if(MonthDays[i] == dd) { return true; } } return false; }