It's says "You don't have enough coins." or is it just not buying?
|
he can someon tell me why after i added this in shop assist i cant buy items?from this shop?
i have 1000 kills and price item is 200
Code:if(c.myShopId == 47) { if (c.myKills >= TotPrice2) { if (c.getItems().freeSlots() > 0) { c.myKills -= TotPrice2; c.getItems().addItem(itemID, 1); Server.shopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1; Server.shopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0; if ((fromSlot + 1) > Server.shopHandler.ShopItemsStandard[c.myShopId]) { Server.shopHandler.ShopItems[c.myShopId][fromSlot] = 0; } } else { c.sendMessage("You don't have enough space in your inventory."); break; } } else { c.sendMessage("You don't have enough Pk Points."); break; } } } c.getItems().resetItems(3823); resetShop(c.myShopId); updatePlayerShop(); return true; }
It's says "You don't have enough coins." or is it just not buying?
no message and dont buy
Contains a line of code, saying NOT shop 47.Code:public boolean buyItem(int itemID, int fromSlot, int amount) {
Code:if (Slot == -1 && c.myShopId != 29 && c.myShopId != 30 && c.myShopId != 31 && c.myShopId != 47) {
i removed them but dont work i changed shop id and nothing
I'll take a look into it.
Let me get back to you.
fixed but i cant understand why when u try to buy 10 buy just 1 same as 5
any ideas
pls help
i will rep+++
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |