21.11.2010, 10:11
pawn Code:
public UpdateDate()
{
new day, month;
getdate(day, month);
new mtext[20];
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 = "Juli"; }
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"; }
format(datestr,sizeof(datestr),"%d %s",day,mtext);
TextDrawSetString(clock,datestr);
}