Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (
/showthread.php?tid=619129)
Help -
SilverStand - 14.10.2016
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
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;
}
#SorryForMyEnglish
Re: Help -
TheDrx - 14.10.2016
Get it to an array and add your returned monthname or get your year and day ToString and add your monthname between.