02.02.2010, 20:03
i made that the admin announces will save to announce.log. All works ,even lines are coming to announce.log m but text i dont see.
Whats the problem?
i use:
forward AnnounceLog(string[]);
public AnnounceLog(string[])
{
new entry[256];
format(entry, sizeof(entry), "%s\n",string);
new File:hFile;
hFile = fopen("logs/Announce.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
And AnnounceLog(string); in /announce command.
Whats the problem?
i use:
forward AnnounceLog(string[]);
public AnnounceLog(string[])
{
new entry[256];
format(entry, sizeof(entry), "%s\n",string);
new File:hFile;
hFile = fopen("logs/Announce.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
And AnnounceLog(string); in /announce command.