Quote:
Originally Posted by jameskmonger
No try this;
pawn Код:
stock GetMonth(month) { * * new monthname[20]; * * switch(Month) * * { * * * * case 1: *monthname = "January"; * * * * case 2: *monthname = "February"; * * * * case 3: *monthname = "March"; * * * * case 4: *monthname = "April"; * * * * case 5: *monthname = "May"; * * * * case 6: *monthname = "June"; * * * * case 7: *monthname = "July"; * * * * case 8: *monthname = "August"; * * * * case 9: *monthname = "September"; * * * * case 10: monthname = "October"; * * * * case 11: monthname = "November"; * * * * case 12: monthname = "December"; default: monthname = 'invalid month'; * } * * return monthname; }
|
No, by the looks of it he is not passing month as a param. So you would need to get the date.