GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: ZSOLTI99 - 2013. március 25. - 15:40:18

Cím: Házak ára
Írta: ZSOLTI99 - 2013. március 25. - 15:40:18
Üdv. Azt szeretném kérdezni hogy a PPC módba a házak újítási  árát hol lehet állítani rakok le egy házat pl 1milla és annak az újiítási árát kellene állítani annyi tudok hogy valamelyik incbe kell de melyikbe?
Aki segít annak megy a +.
Köszönöm a segítséget.
Cím: Házak ára
Írta: halaloszto100 - 2013. március 25. - 15:53:56
PPC_Housing includeba ez a rész:
 
// This function calculates the sell-price for the given house
House_CalcSellPrice(HouseID)
{
// Setup local variables
new SellPrice, NumUpgrades, UpgradePrice;
// Calculate 50% of the original buying price (base-price for selling)
SellPrice = AHouseData[HouseID][HousePrice] / 2;
// Calculate the number of upgrades applied to the house
NumUpgrades = AHouseData[HouseID][HouseLevel] - 1;
// Also calculate 50% for each upgrade, based on the percentage for upgrading the house
UpgradePrice = ((AHouseData[HouseID][HousePrice] / 100) * HouseUpgradePercent) * NumUpgrades;
// Add 50% of the upgrade-price to the sell-price
SellPrice = SellPrice + UpgradePrice;
// Return the total sell-price to the calling function
return SellPrice;
}
Cím: Házak ára
Írta: ZSOLTI99 - 2013. március 25. - 16:02:04
Ez meg van akkor ott a számot kell állítani
Cím: Házak ára
Írta: halaloszto100 - 2013. március 25. - 16:19:18
Szerintem ezt kell át állítani mert ez a ház szint növelése:
 
UpgradePrice = ((AHouseData[HouseID][HousePrice] / 100) * HouseUpgradePercent) * NumUpgrades;

 
A 100-as számot állítgasd és nézd meg, hogy változik-e.