13.03.2015, 00:02
Quote:
And if you have this in y_ini.. You'll have to have a folder in scriptfiles and you will have to store each biz in each own ini file.
|
Example from the Y_ini tutorial thread(although I have never used it before - and will refuse to I will use his example)
pawn Код:
new
// The name of the file, can be any string variable or literal.
fileToWrite[] = "mine.INI",
// "INI_Open" returns a variable with tag "INI".
INI:iniFile = INI_Open(fileToWrite);
//
// y_ini supports tags, that is:
//
// [tag]
// key = value
//
INI_SetTag(iniFile, "examples");
// Write an integer value with the key "some_integer" under the current tag:
INI_WriteInt(iniFile, "some_integer", 42);
// Now close the current file:
INI_Close(iniFile);