Banned logs
#5

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?
Reply


Messages In This Thread
Banned logs - by DerickClark - 10.01.2013, 16:41
Re: Banned logs - by mineralo - 10.01.2013, 17:26
Re: Banned logs - by DerickClark - 10.01.2013, 17:41
Re: Banned logs - by mineralo - 10.01.2013, 18:15
Re: Banned logs - by u3ber - 10.01.2013, 18:18
Re: Banned logs - by mineralo - 10.01.2013, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)