Szerző Téma: Ház Szint Bug  (Megtekintve 1374 alkalommal)

Ház Szint Bug
« Dátum: 2012. November 16. - 17:47:36 »
0 Show voters
Üdv Az A Problémám Mikor Beírom A /hazmenu parancsot akkor ha, lefrissíteném a házat akkor azt írja a ház elérte a maximum szintet pedig csak 1-es a ház csak... a Maximum szint 10. Még a dialogot se nyitja meg. Ebben kéne a segítség. Jutalom 2 db pluszocska.
Kódrész:
 
       }
    case 1: // Upgrade the house
{
   // Only the house-owner can use this option
   if (House_PlayerIsOwner(playerid, HouseID) == 1)
   {
        // Check if it\'s possible to upgrade further
      if (AHouseData[HouseID][HouseLevel] < AHouseData[HouseID][HouseMaxLevel])
      {
         // Add only the upgrades above the current house-level to the upgradelist
         for (new i = AHouseData[HouseID][HouseLevel] + 1; i <= AHouseData[HouseID][HouseMaxLevel]; i++)
         {
             Counter++; // Add 1 to the counter each time an upgrade is added to the upgradelist
             UpgradePrice = ((AHouseData[HouseID][HousePrice] * Counter) / 100) * HouseUpgradePercent;
             // Add the upgrade-info in green if the player can afford it, and in red if he cannot afford it
            if (INT_GetPlayerMoney(playerid) >= UpgradePrice)
               format(UpgradeList, 2000, \"%s{00FF00}%s (szint %i)\\t\\t$%i\\n\", UpgradeList, AHouseInteriors[interiorName], i, UpgradePrice);
            else
               format(UpgradeList, 2000, \"%s{FF0000}%s (szint %i)\\t\\t$%i\\n\", UpgradeList, AHouseInteriors[interiorName], i, UpgradePrice);
            // Show another dialog to let the player select which upgrade he wants for his house
            ShowPlayerDialog(playerid, DialogUpgradeHouse, DIALOG_STYLE_LIST, \"Válaszd ki a frissítést:\", UpgradeList, \"Kiválaszt\", \"Mégsem\");
          }
      }
      else
             SendClientMessage(playerid, 0xFFFFFFFF, \"{FF0000}A házad elérte a maximum szintet, többé nem tudsz használni frissítéseket.\");
   }
   else
            SendClientMessage(playerid, 0xFFFFFFFF, \"{FF0000}Csak a ház tulajdonosa tudja használni ezt az opciót.\");
    }

 
Ez PPC_Housing Ház Rendszerében van.
« Utoljára szerkesztve: 2012. November 17. - 15:28:19 írta Chris_Antonio »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal