y_ini question
#1

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);
}
Reply
#2

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

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

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.
Reply
#5

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)