SA-MP Forums Archive
How to add date on this? - 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: How to add date on this? (/showthread.php?tid=541491)



How to add date on this? - XGreen - 12.10.2014

Hi guys! i need help, i want to add the current date on this code:
pawn Код:
new stringbig[356];
            if(team[playerid] == TEAM_HUMAN)
            {
            format(stringbig,sizeof(stringbig),"{C9FFAB} [HUMAN](%d): %s",playerid, text);
            SendPlayerMessageToAll(playerid,stringbig);
            }
            if(team[playerid] == TEAM_ZOMBIE)
            {
            format(stringbig,sizeof(stringbig),"{C9FFAB} [ZOMBIE](%d): %s",playerid, text);
            SendPlayerMessageToAll(playerid,stringbig);
            }
like this: [dd/mm/yy - hh:mm]

Thanks..


Re: How to add date on this? - AroseKhanNiazi - 12.10.2014

https://sampforum.blast.hk/showthread.php?tid=197721


Re: How to add date on this? - XGreen - 12.10.2014

Quote:
Originally Posted by AroseKhanNaizi
Посмотреть сообщение
Thank You, But How About The Time?


Re: How to add date on this? - Dampyr - 12.10.2014

See this about time: https://sampwiki.blast.hk/wiki/Gettime


Re: How to add date on this? - AroseKhanNiazi - 12.10.2014

see that he used the getdate function to get the time