Quote:
Originally Posted by mineralo
pawn Код:
forward BanLog(string[]); public BanLog(string[]) { new entry[256]; format(entry, sizeof(entry), "%s\r\n",string); new File:hFile; hFile = fopen("Ban.log", io_append); if (hFile) { fwrite(hFile, entry); fclose(hFile); } }
use the BanLog(string) when you ban a player, and the info will be written in Ban.log file
|
you do know there are
good ini file systems that makes this job easier right?