19.03.2015, 08:55
Dear,
I trying to make command log file , but the only thing i made is writing the command to server.log - its working but spamming the file which is useless for me.
I trying to make a file (dosent matter file name ) which all commands will be saved there, now i did all code into the ZCMD include and its looks like
i need format are using fwrite, fopen etc..
Anyone can help me with making a format to new file instead of server.log ?
I trying to make command log file , but the only thing i made is writing the command to server.log - its working but spamming the file which is useless for me.
I trying to make a file (dosent matter file name ) which all commands will be saved there, now i did all code into the ZCMD include and its looks like
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new playername[24]; GetPlayerName(playerid, playername, 24); printf("[cmd] %s(%d): %s", playername, playerid, cmdtext); }
Anyone can help me with making a format to new file instead of server.log ?