How to use IniParser functions?

Started by NicusorN5, May 30, 2016, 06:38 PM

Previous topic - Next topic

NicusorN5

Yeah,i tested the server , the WriteIniString was called,i closed the game ,then the server and i see no ini file lol

KAKAN

Quote from: NicusorN5 on Jun 06, 2016, 06:58 PMYeah,i tested the server , the WriteIniString was called,i closed the game ,then the server and i see no ini file lol
The INI plugin doesn't create files. You either need to rewrite the function or simply make the file yourself :)
oh no

NicusorN5

So i need to create a empty .ini file???

jayant

Yes create a file by yourself, you can only read things from it and not write things in it.

KAKAN

Quote from: NicusorN5 on Jun 07, 2016, 01:33 PMSo i need to create a empty .ini file???

Nein. Use the file function.
function CreateFileAndWriteIni( fileName, and, your, shitty, arguments )
{
 //Lets create the file:-
 file( fileName, "a+" ).close(); //Search for C++ fopen flags and choose a better one.
 //File created, yey!
 WriteIni( .... );
}
oh no

NicusorN5