19.09.2009, 18:59
Quote:
|
Originally Posted by -Alive
You should check log saving code, becouse as overlord saied log crashes server, and wont log anything.
|
pawn Код:
forward KickLog(string[]);
public KickLog(string[])
{
new entry[256];
format(entry, sizeof(entry), "%s\n",string);
new File:hFile;
hFile = fopen("kick.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
EXAMPLE:
format(string, sizeof(string), "[SERVER]: %s is kicked from the server. Reason: Account banned!", sendername);
KickLog(string);

