getdate(...day) bug
#1

I think this is a bug. I've tryed a command using the &day

pawn Код:
if(strcmp(cmd, "/date", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
            new mtext[20],dtext[20];
            new year, month,day;
            getdate(year, month, day);

            if(month == 1) { mtext = "January"; }
            else if(month == 2) { mtext = "February"; }
            else if(month == 3) { mtext = "March"; }
            else if(month == 4) { mtext = "April"; }
            else if(month == 5) { mtext = "May"; }
            else if(month == 6) { mtext = "June"; }
            else if(month == 7) { mtext = "July"; }
            else if(month == 8) { mtext = "August"; }
            else if(month == 9) { mtext = "September"; }
            else if(month == 10) { mtext = "October"; }
            else if(month == 11) { mtext = "November"; }
            else if(month == 12) { mtext = "December"; }

            if(day == 1) { dtext = "Monday"; }
            else if(day == 2) { dtext = "Tuesday"; }
            else if(day == 3) { dtext = "Wednesday"; }
            else if(day == 4) { dtext = "Thursday"; }
            else if(day == 5) { dtext = "Friday"; }
            else if(day == 6) { dtext = "Saturday"; }
            else if(day == 7) { dtext = "Sunday"; }

            format(string, sizeof(string), "%s~n~%s",mtext,dtext);
            GameTextForPlayer(playerid, string, 5000, 1);
        }
        return 1;
    }
He don't show me the day , why ?
Reply


Messages In This Thread
getdate(...day) bug - by Danut - 30.04.2009, 19:58
Re: getdate(...day) bug - by Double-O-Seven - 30.04.2009, 20:10
Re: getdate(...day) bug - by Danut - 30.04.2009, 20:12
Re: getdate(...day) bug - by lavamike - 30.04.2009, 20:23
Re: getdate(...day) bug - by Weirdosport - 30.04.2009, 20:58

Forum Jump:


Users browsing this thread: 2 Guest(s)