Y_INI Problem
#1

Hello first of all

I'm having a problem here with Y_INI inlude. I'm making house system, and I have this code.

pawn Код:
stock CreateHouse(Addr[], Price, Float:Pickupx, Float:Pickupy, Float:Pickupz, Float:Telex, Float:Teley, Float:Telez, interior, sell)
{
  //Addr[] is house name(adress)
  new INI:owners = INI_Open("Freeroam/houses/Owners.ini");
 
  HouseCount ++;
  new ID = HouseCount; //HouseID
  format(HouseInfo[ID][Address], 60, "%s", Addr);
  HouseInfo[ID][Cost] = Price;
  HouseInfo[ID][PickupX] = Pickupx;
  HouseInfo[ID][Virtual] = 2000000 + ID;
  HouseInfo[ID][PickupY] = Pickupy;
  HouseInfo[ID][PickupZ] = Pickupz;
  HouseInfo[ID][TeleX] = Telex;
  HouseInfo[ID][TeleY] = Teley;
  HouseInfo[ID][TeleZ] = Telez;
  HouseInfo[ID][Interior] = interior;
  HouseInfo[ID][Sell] = sell;
  HouseInfo[ID][Slot1] = 0;
  HouseInfo[ID][Slot2] = 0;
  HouseInfo[ID][Slot3] = 0;
  format(HouseInfo[ID][Owner], 24, "gj9043jg-er((23");
  if(strlen(INI_String(Addr))) //This is to see if there is any owner.
  {
  INI_String(Filename,HouseInfo[ID][Addr]);
  HouseInfo[ID][Owned] = 1;
  }
  PickupID[ID] = CreatePickup(1273, 23, Pickupx, Pickupy, Pickupz, -1);
  Create3DTextLabel(HouseInfo[ID][Address], 0x00A0F6AA, Pickupx, Pickupy, Pickupz + 0.75, 15.0, 0, 1);
  INI_Close(owners);
}
This is code for creating houses, however I have problem on this part right here:
pawn Код:
if(strlen(INI_String(Addr))) //Problematic line
  {
  INI_String(Filename,HouseInfo[ID][Addr]); //Problematic line
  HouseInfo[ID][Owned] = 1;
  }
Quote:
Originally Posted by Error
error 017: undefined symbol "INI_String"
error 017: undefined symbol "INI_String"
I don't get why I get this error, I'm positively sure I did include Y_INI, besides other Y_INI functions work correctly.

Solutions, anybody?
Reply
#2

I think it's safe to bump this thread now.

It surprise that nobody knows how to solve this problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)