How to log information
#2

well this is for bans, but u can edit to work for almost all.


Add BanLog(String); in your /ban thingie.. w.e

forward BanLog(String[]);
public BanLog(String[])
{
new entry[256];
format(entry, sizeof(entry), "%s\n",String);
new File:hFile;
hFile = fopen("Logs/ban.log", io_append);
fwrite(hFile, entry);
fclose(hFile);

return 1;
}
Reply


Messages In This Thread
How to log information - by ruckfules99 - 14.02.2010, 03:33
Re: How to log information - by DiddyBop - 14.02.2010, 03:45
Re: How to log information - by mansonh - 14.02.2010, 06:41

Forum Jump:


Users browsing this thread: 2 Guest(s)