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);
}
if(strlen(INI_String(Addr))) //Problematic line
{
INI_String(Filename,HouseInfo[ID][Addr]); //Problematic line
HouseInfo[ID][Owned] = 1;
}
Originally Posted by Error
error 017: undefined symbol "INI_String"
error 017: undefined symbol "INI_String" |