Help With My Chat Log
#1

The script logs the messages in the chat box but how do I add the time when the message was sent to it.
Thanks

pawn Код:
public OnPlayerText(playerid, text[])
{
    new pname[24], File:ftw=fopen("ChatLog.txt", io_append);
  GetPlayerName(playerid, pname, 24);
  new string[30];
    format(string, 30, "%s : %s\r\n", pname,text);
    fwrite(ftw, string);
  fclose(ftw);
  return 1;
}
Reply


Messages In This Thread
Help With My Chat Log - by Alec24 - 29.03.2009, 14:37
Re: Help With My Chat Log - by FUNExtreme - 29.03.2009, 14:38
Re: Help With My Chat Log - by Pyrokid - 29.03.2009, 14:41
Re: Help With My Chat Log - by illay - 29.03.2009, 14:55
Re: Help With My Chat Log - by FUNExtreme - 29.03.2009, 14:55
Re: Help With My Chat Log - by illay - 29.03.2009, 14:58
Re: Help With My Chat Log - by FUNExtreme - 29.03.2009, 14:59
Re: Help With My Chat Log - by Alec24 - 29.03.2009, 15:02
Re: Help With My Chat Log - by FUNExtreme - 29.03.2009, 15:05
Re: Help With My Chat Log - by illay - 29.03.2009, 15:05

Forum Jump:


Users browsing this thread: 9 Guest(s)