29.03.2009, 14:37
The script logs the messages in the chat box but how do I add the time when the message was sent to it.
Thanks
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;
}