SA-MP Forums Archive
Bugg with Y_ini - 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: Bugg with Y_ini (/showthread.php?tid=552636)



Bugg with Y_ini - Banditukas - 25.12.2014

Hi,

I'am now using Y_INI saving, loading. But now bugg is that penultimate line is copy.. like in example:

Код:
Player_Name = Xasd
XP = 5555
Joindata = 2014
Spawndata = 2014
death = 5
money = 500
kills = 5
wanted = 5death = 5
state = 2



Re: Bugg with Y_ini - Mic_H - 25.12.2014

Can you show the saving/creating function or script snippet.


Re: Bugg with Y_ini - Banditukas - 25.12.2014

Код:
new
    INI:ini = INI_Open("main.ini");
INI_WriteString(ini, "Player_Name", "Xasd");
INI_WriteInt(ini, "XP", 5555);
INI_WriteInt(ini, "Joindata",2014);
INI_WriteInt(ini, "Spawndata",2014);
INI_WriteInt(ini, "death",5);
INI_WriteInt(ini, "money",500);
INI_WriteInt(ini, "kills",5);
INI_WriteInt(ini, "wanted",5);
INI_WriteInt(ini, "death",5);
INI_WriteInt(ini, "state",2);
INI_Close(ini);
Of course this is not alway when i do that it'is sometimes that i think it'is deeper in Y_INI include.