14.03.2011, 17:03
pawn Код:
public OnPlayerText(playerid, text[])
{
//Chatlog
new chat[128],file[128],string[200],chater[128],hour,minute,second,year, month, day;
GetPlayerName(playerid,chater,sizeof(chater));
gettime(hour,minute,second);
getdate(year,month,day);
format(chat,sizeof(chat),"[T: %d:%d:%d D: %d %d %d] : ( %s ): %s",hour,minute,second, month, day, year,chater,text);
format(file,sizeof(file),"Logs/ChatLog.txt");
new INI:chatlog = INI_Open(file);
INI_WriteString(chatlog,"",string);
INI_Close(chatlog);
return 1;
}
I'm obviously doing something wrong, but cant find out what..