SA-MP Forums Archive
Y_INI is this correct? - 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 is this correct? (/showthread.php?tid=442113)



Y_INI is this correct? - Yuup - 05.06.2013

This is the code:
pawn Код:
for(new i = 1; i < MAX_BUTTONS; i++)
{
    if(fexist(ButtonPath(i)))
    {
        INI_ParseFile(ButtonPath(i), "LoadButtons_%s", .bExtra = true, .extra = i);
    }
}


forward LoadButtons_buttondata(bid,name[],value[]);
public LoadButtons_buttondata(bid,name[],value[])
{
    print("0:2");
    INI_Int("ButtonID",ButtonInfo[bid][bButtonID]);
    INI_Int("ButtonStatus",ButtonInfo[bid][bButtonStatus]);
    INI_Int("ButtonCode",ButtonInfo[bid][bButtonCode]);
    print("0:3");
    return 1;
}
There is only one file And it prints:
Quote:

0:1
0:2
0:2
0:2

Is that suppose to happen?