Y_Ini - Mass load using tags
#1

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)