29.09.2012, 14:49
Hello, I started working on a business system.I added that:
and when I compiled gave me some errors
Please help.
pawn Код:
new str[40];
for(new idx = 1; idx < sizeof(BusinessInfo); idx++)//loops through all the Businesses
{
format(str, sizeof(str), BPATH, idx);//formats the file path, with the biz ID
INI_ParseFile(str, "loadbiz_%s", .bExtra = true, .extra = idx );//This is very hard to explain, but it basically loads the info from the file(More in ****** y_ini tutorial.)
BusinessInfo[idx][bOutsideIcon] = CreateDynamicPickup(1272, 1, BusinessInfo[idx][bEntranceX], BusinessInfo[idx][bEntranceY], BusinessInfo[idx][bEntranceZ], BusinessInfo[idx][bWorld]); //Creates a pickup at the business entrance.
BusinessInfo[idx][bInsideIcon] = CreateDynamicPickup(1272, 1, BusinessInfo[idx][bExitX], BusinessInfo[idx][bExitY], BusinessInfo[idx][bExitZ], BusinessInfo[idx][bInsideWorld]); //Creates a pickup at the exit(Inside the interior)
}
pawn Код:
E:\SA-MP Resources\RPG\gamemodes\New.pwn(84) : error 017: undefined symbol "INI_ParseFile"
E:\SA-MP Resources\RPG\gamemodes\New.pwn(84) : warning 215: expression has no effect
E:\SA-MP Resources\RPG\gamemodes\New.pwn(84) : error 029: invalid expression, assumed zero
E:\SA-MP Resources\RPG\gamemodes\New.pwn(84) : error 017: undefined symbol "extra"
E:\SA-MP Resources\RPG\gamemodes\New.pwn(84) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.