29.11.2012, 18:52
You're welcome. Although, I have tested and it gets the name of the day, but +2.
You need to change the switch with the following one;
You need to change the switch with the following one;
pawn Код:
// --
switch( ( day + ( month + 1 ) * 26 / 10 + j + j / 4 + e / 4 - 2 * e ) % 7 )
{
case 0: weekday_str = "Thursday";
case 1: weekday_str = "Friday";
case 2: weekday_str = "Saturday";
case 3: weekday_str = "Sunday";
case 4: weekday_str = "Monday";
case 5: weekday_str = "Tuesday";
case 6: weekday_str = "Wednesday";
}


