TalkLog Time
#1

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);
}
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)