29.05.2014, 09:35
Brief: I'm confused on how to make this work. The mismatch is on the 3 lines under the LoadBiz function. I have been studying the y_ini tutorial, but it doesn't explain this specific situation. If you make an attempt to fix, explain what you are doing, and why you are doing it please.
pawn Код:
forward Load_Biz(BizID,line[],value[]);
public Load_Biz(BizID,line[],value[])
{
INI_Int("EnterX",bInfo[BizID][EnX]);
INI_Int("EnterY",bInfo[BizID][EnY]);
INI_Int("EnterZ",bInfo[BizID][EnZ]);
return 1;
}
main() print("\n Hello World! \n");
public OnGameModeInit()
{
for (new i=0; i<MAX_BIZ; i++)
{
new filename[64];
format(filename,sizeof(filename),"Biz/%i.ini",i);
if(fexist(filename)){INI_ParseFile(filename, "Load_Biz", .bExtra = true, .extra = i);}
}
return 1;
}