SA-MP Forums Archive
Little help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Little help (/showthread.php?tid=381431)



Little help - SounDD - 29.09.2012

Hello, I started working on a business system.I added that:
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)
    }
and when I compiled gave me some errors
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.
Please help.


Re: Little help - xMCx - 29.09.2012

Download YSI then add this on the below your includes
pawn Код:
#include <YSI/y_ini>



Re: Little help - SounDD - 29.09.2012

Quote:
Originally Posted by xMCx
Посмотреть сообщение
Download YSI then add this on the below your includes
pawn Код:
#include <YSI/y_ini>
Thanks,I forgot to put this.