SA-MP Forums Archive
Need help using 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: Need help using Y_INI (/showthread.php?tid=634047)



Need help using Y_INI - akib - 12.05.2017

Hi,
1.how to add new line in 1 file using y_ini

example:
Код:
AddVeh(vehid,x,y,z);
AddVeh(vehid,x,y,z);
in 1 file


2.how to load the lines
3.how to load all ini files in the folder and read all

example:
Код:
D;/Folder/1.ini
D;/Folder/2.ini

1.ini
AddVeh(vehid,x,y,z);
AddVeh(vehid,x,y,z);
//auto add vehicle in-game

2.ini
AddObj(objid,x,y,z);
AddObj(objid,x,y,z);
//auto add obj in-game
4.and also how to read multiple lines in multiple folder

example:
Код:
D;/Folder/1.ini
D;/Folder/2.ini

1.ini
Line 1 : Test
Line 2 : Hello
Line 3 : Ok

2.ini
Line 1 : Test1
Line 2 : Hello1
Line 3 : Ok1



Re: Need help using Y_INI - iLearner - 12.05.2017

use dini2 if you really want to use file-based system, its simpler.


Re: Need help using Y_INI - akib - 15.05.2017

bump this topic!


Re: Need help using Y_INI - zedshadowzw - 15.05.2017

I suggest you to use dini2, its really simple