Y_INI is this correct?
#1

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?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)