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;
}
0:1 0:2 0:2 0:2 |