Best way to load multiple tags using y_ini
#1

If I am saving my factions like this:
pawn Код:
new INI:ini = INI_Open("factions.ini");
    foreach(new factionid:factions)
    {
        INI_SetTag(ini, factionid);
                // other shit
        }
        INI_Close(ini);
Is there a way to load all tags from a file?
So I can load the data like this:
pawn Код:
foreach(new factionid:factions)
       {
               INI_Int("Leader", FacInfo[factionid][facLeader]);
       }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)