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)
}
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.
#include <YSI/y_ini>
Download YSI then add this on the below your includes
pawn Код:
|