02.11.2015, 23:47
Just made this macro, using Crayder's idea but fixing it so that 1900, 2100 and years like that won't get considered as leap years.
pawn Код:
#define IsLeapYear(%0) (!(%0 & 15) || (%0 % 100) && !(%0 & 3))