SA-MP Forums Archive
y_ini question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: y_ini question (/showthread.php?tid=319741)



y_ini question - Dragony92 - 20.02.2012

Is it posible to make this with y_ini, and how to...
Thank you.
pawn Код:
public KickLog(string[])
{
    new entry[200];
    format(entry, sizeof(entry), "%s\r\n",string);
    new File:hFile;
    hFile = fopen("/Logs/kick.log", io_append);
    fwrite(hFile, entry);
    fclose(hFile);
}



Re: y_ini question - JamesC - 20.02.2012

Why would you want a log file stored in a key=value format?


Re : y_ini question - ombre - 21.02.2012

so for the logs the best solution ( fast read and write) is the function sa:mp?


Re: y_ini question - admantis - 21.02.2012

Unless you want a log file in the "key = value" format like JamesC said, don't use y_INI for logs. You are better using the native file functions, which are alot faster than any file system arround.


Re : y_ini question - ombre - 22.02.2012

ok thank.

With y_ini we can save the files in .CFG instead to .INI because my old files are in cfg. Whats the different between both?


Re: y_ini question - admantis - 22.02.2012

It's alright to use .cfg files, you can do it with y_INI too, the extension is not very important.