30.04.2009, 19:58
I think this is a bug. I've tryed a command using the &day
He don't show me the day , why ?
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;
}