Need Function | Day
#5

Quote:
Originally Posted by dr.lozer
Посмотреть сообщение
Thank you !!!!!
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;
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";
    }
Reply


Messages In This Thread
Need Function | Day - by dr.lozer - 28.11.2012, 11:01
Re: Need Function | Day - by dino_d_carter - 28.11.2012, 12:36
Re: Need Function | Day - by Konstantinos - 28.11.2012, 12:49
Re: Need Function | Day - by dr.lozer - 28.11.2012, 17:53
Re: Need Function | Day - by Konstantinos - 29.11.2012, 18:52

Forum Jump:


Users browsing this thread: 1 Guest(s)