Also what you're doing is stupid. Just increment days, write a function that divides the days by 31 and prints out a month. Having a day counter and a month counter is excessive, it's better to stick with a day counter and just make a basic return function that prints out a month.
If this is too complex, here's a tip: don't use a month variable- just use a day variable, divide by 31 and round down using mFloor(); and use the number you get to return a month
Example:
Function dayToMonth(%day)
{
%val = mFloor(%day/31);
Switch(%val)
{
Case 0:
Return "January";
Case 1:
Return "Febuary";
Default:
Return "Nan";
}
}
Then if you do echo(daytomonth(32)); you'll get Febuary, etc. to get the exact day of the month, use modulus % or subtract month*day from the total daycount