#1

I'd like to have some help on y_ini. I've been using Dini since I learnt how to script but now I made a script that needs to check a file each 3 seconds. Since dini is too heavy, I've tried to use y_ini.

I already managed to create the file
pawn Код:
new fileToWrite[] = "topc.ini";

new INI:iniFile = INI_Open(fileToWrite);
INI_SetTag(iniFile, "t");
INI_WriteFloat(iniFile, "1", 9999999.0, 4);
INI_WriteFloat(iniFile, "2", 9999999.0, 4);
INI_WriteFloat(iniFile, "3", 9999999.0, 4);
INI_WriteFloat(iniFile, "4", 9999999.0, 4);
INI_WriteFloat(iniFile, "5", 9999999.0, 4);
INI_SetTag(iniFile, "p");
INI_WriteString(iniFile, "1", "");
INI_WriteString(iniFile, "2", "");
INI_WriteString(iniFile, "3", "");
INI_WriteString(iniFile, "4", "");
INI_WriteString(iniFile, "5", "");
INI_Close(iniFile);
What I'd like to do is to access those floats and strings and change them if needed. If you could give me some tips on how to do it, I'd be thankful.

Thanks in advance.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)