SA-MP Forums Archive
Best way to load multiple tags 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: Best way to load multiple tags using y_ini (/showthread.php?tid=594234)



Best way to load multiple tags using y_ini - Facerafter - 15.11.2015

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]);
       }