26.08.2009, 10:05
Код:
public LoadPlayerHouses(houseid) { new house[64]; format(house, sizeof(house), "/Houses/%d.dini.save", houseid); if(dini_Exists(house)) { format(HouseInfo[houseid][hName], 24, "%s", dini_Get(house, "Name")); HouseInfo[houseid][hSellable] = dini_Int(house, "For_Sell"); HouseInfo[houseid][hSell] = dini_Int(house, "Sell_Price"); HouseInfo[houseid][hRent] = dini_Int(house, "Rent_Price"); HouseInfo[houseid][hLevel] = dini_Int(house, "House_Level"); HouseInfo[houseid][hEnterX] = dini_Float(house, "Enter_Coord:X"); HouseInfo[houseid][hEnterY] = dini_Float(house, "Enter_Coord:Y"); HouseInfo[houseid][hEnterZ] = dini_Float(house, "Enter_Coord:Z"); HouseInfo[houseid][hExitX] = dini_Float(house, "Exit_Coord:X"); HouseInfo[houseid][hExitY] = dini_Float(house, "Exit_Coord:Y"); HouseInfo[houseid][hExitZ] = dini_Float(house, "Exit_Coord:Z"); HouseInfo[houseid][hInterior] = dini_Int(house, "Interior"); HouseInfo[houseid][hVirtualWorld] = dini_Int(house, "VirtualWorld"); HouseInfo[houseid][hLocked] = dini_Int(house, "Status"); } }