INI ParseFile, arguement type mismatch
#1

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;
}
Reply


Messages In This Thread
INI ParseFile, arguement type mismatch - by Aerotactics - 29.05.2014, 09:35
Re: INI ParseFile, arguement type mismatch - by Dignity - 29.05.2014, 09:37
Re: INI ParseFile, arguement type mismatch - by Aerotactics - 29.05.2014, 09:41
Re: INI ParseFile, arguement type mismatch - by Dignity - 29.05.2014, 09:47
Re: INI ParseFile, arguement type mismatch - by Aerotactics - 29.05.2014, 09:49
Re: INI ParseFile, arguement type mismatch - by Dignity - 29.05.2014, 09:51
Re: INI ParseFile, arguement type mismatch - by VenomMancer - 29.05.2014, 10:16

Forum Jump:


Users browsing this thread: 1 Guest(s)