19.03.2011, 21:36
Код:
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; }
Help.