I need a little help.
#1

Код:
public LoadBuilding(houseid)
{
	new House[128], owner[MAX_PLAYER_NAME], name[128];
    format(House, sizeof(House), "Budynki/%d.ini", houseid);
	BuildingInfo[houseid][bExteriorX] = djFloat(House, "ExteriorX");
	BuildingInfo[houseid][bExteriorY] = djFloat(House, "ExteriorY");
	BuildingInfo[houseid][bExteriorZ] = djFloat(House, "ExteriorZ");
	BuildingInfo[houseid][bExteriorIntID] = djInt(House, "ExteriorIntID");
	BuildingInfo[houseid][bInteriorX] = djFloat(House, "InteriorX");
	BuildingInfo[houseid][bInteriorY] = djFloat(House, "InteriorY");
	BuildingInfo[houseid][bInteriorZ] = djFloat(House, "InteriorZ");
	BuildingInfo[houseid][bInteriorIntID] = djInt(House, "InteriorIntID");
	BuildingInfo[houseid][bType] = djInt(House, "Type");
	BuildingInfo[houseid][bOwned] = djInt(House, "Owned");
	BuildingInfo[houseid][bOwner] = format(owner, sizeof(owner), "%s", dj(House, "Owner"));
	BuildingInfo[houseid][bName] = format(name, sizeof(name), "%s", dj(House, "Name"));
	BuildingInfo[houseid][bPickup] = CreateDynamicPickup(1239, 2, BuildingInfo[houseid][bExteriorX], BuildingInfo[houseid][bExteriorY], BuildingInfo[houseid][bExteriorX], -1, -1, -1, 15.0);
	return 1;
}
Last line should create a pickup at entrance coordinates, but it doesn't. Even without the "BuildingInfo" thing.
Help.
Reply
#2

BuMp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)