Y_ini public convert
#3

Quote:
Originally Posted by RaeF
Посмотреть сообщение
Afaik, Y_ini doesn't support for writing logs
Wow... You are quite misleading...

Yes this is not the best idea, but it's not impossible. This may or may not work (wrote on iPad):
pawn Код:
public KickLog(string[])
{
    new INI:kFile = INI_Open("/Logs/kick.log"), date[64], date_i[6];
    getdate(date_i[0], date_i[1], date_i[2]);
    gettime(date_i[3], date_i[4], date_i[5]);
    format(date, 64, "%02d/%02d/%d_%02d:%02d:%02d", date_i[0], date_i[1], date_i[2], date_i[3], date_i[4], date_i[5]);
    INI_WriteString(kFile, date, string);
    INI_Close(kFile);
}
Reply


Messages In This Thread
Y_ini public convert - by bigboy81 - 15.05.2015, 02:02
Re: Y_ini public convert - by RaeF - 15.05.2015, 02:09
Re: Y_ini public convert - by Crayder - 15.05.2015, 02:28

Forum Jump:


Users browsing this thread: 1 Guest(s)