29.03.2009, 15:02
I have managed to get it working with
Its quite different from
But is it still ok?
pawn Код:
public OnPlayerText(playerid, text[])
{
new pname[24], File:ftw=fopen("ChatLog.txt", io_append);
new Hour, Minute, Second;
new string[30];
GetPlayerName(playerid, pname, 24);
gettime(Hour, Minute, Second);
format(string, 30, "[%02d:%02d:%02d] %s : %s\r\n" ,Hour,Minute,Second,pname,text);
fwrite(ftw, string);
fclose(ftw);
return 1;
}
Quote:
Originally Posted by illay
AlecRae,
1. Create file "Server Floder/scriptfiles/Logs/Chatlog.txt" 2. Install complete chat log script (did not test): pawn Код:
|