SA-MP Forums Archive
TalkLog Time - 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: TalkLog Time (/showthread.php?tid=306822)



TalkLog Time - Ballu Miaa - 28.12.2011

This is TalkLog of my server made of a Ripoff! ive added id and name of the player also now. But i want to add time in it. Like when a player says Hi In the mainchat , so it should store under talklog
Player(0): Hi // 8:53 AM // This should be according to Indian Time GMT +5:30 Please help how can i do so?

pawn Код:
public TalkLog(string[])
{
    new entry[256];
    new sendername[MAX_PLAYER_NAME],playerid;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(entry, sizeof(entry), "%s %s\r\n",sendername,string);
    new File:hFile;
    hFile = fopen("Logs/talk.log", io_append);
    fwrite(hFile, entry);
    fclose(hFile);
}



Re: TalkLog Time - XFlawless - 28.12.2011

https://sampwiki.blast.hk/wiki/Gettime