Y_Ini - Mass load using tags - 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: Y_Ini - Mass load using tags (
/showthread.php?tid=363652)
Y_Ini - Mass load using tags -
Jochemd - 28.07.2012
Hello,
Assuming we got the file 'houses.ini' with the following content:
Код:
[0]
PickupX = 544.2
PickupY = 233.9
PickupZ = 8.0
[1]
PickupX = 219.55
PickupY = 982.71
PickupZ = 22.99
// And so on
I know how to load a
single using a tag, but not how to load them dynamic! Like this:
pawn Код:
INI:houses[tag](name[],value[])
{
// Loading the shit here
}
INI_Load("houses.ini");
I do not see a way to loop through all tags. Also INI_Parsefile is for multiple files as far as I know. Can someone show me a way to do it?
Jochem