Y_ini public convert
#1

In which way i can convert this public to y_ini?

My friend say me, i don't need convert this to ini.
But i suppose i need convert this in key=value format.

What i need to do.

PHP код:
public KickLog(string[])
{
    new 
entry[200];
    
format(entrysizeof(entry), "%s\r\n",string);
    new 
File:hFile;
    
hFile fopen("/Logs/kick.log"io_append);
    
fwrite(hFileentry);
    
fclose(hFile);

Reply
#2

Afaik, Y_ini doesn't support for writing logs
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)