21.05.2009, 09:35
ive been trying to get my server to right a cmd log with the cmd typed and the players name atm all it does is the cmd how do i fix it? heres code
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
CmdLog(cmdtext);
Код:
public CmdLog(string[])
{
new entry[256];
format(entry, sizeof(entry), "%s\n",string);
new File:hFile;
hFile = fopen("cmd.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}

