14.10.2016, 09:29
Hii, i make a stock for getdate, but i want the month show as text not number ..
if i use the stock, that just show me the month name, not with the year and day
+REP
#SorryForMyEnglish
if i use the stock, that just show me the month name, not with the year and day
+REP
pawn Код:
stock GetTimeNow()
{
new
monthname[10],
Year, Month, Day;
getdate(Year, Month, Day);
switch(Month)
{
case 1: monthname = "Januari";
case 2: monthname = "Februari";
case 3: monthname = "Maret";
case 4: monthname = "April";
case 5: monthname = "Mei";
case 6: monthname = "Juni";
case 7: monthname = "Juli";
case 8: monthname = "Agustus";
case 9: monthname = "September";
case 10: monthname = "Oktober";
case 11: monthname = "November";
case 12: monthname = "Desember";
}
return monthname;
}