this is why half of this community will not get anywhere jumping into a language they do not understand smh
OT how about you post the code we can help. we are not psychic and know exactly is on your source...
|
|
Baseelta
Problem:When u buy a item it says 2 prices and it cost coins and donor tickets and u buy 2 of them
Errors(Compiling Errors):none...
Other Information/Media(Pictures, etc):
if you dindnt understand video.. i made a Donor shop. i wanted ti to cost "donor tickets" so i coped my tokui method. but when i buy "1" it gives me two.. and when you click value it says cost 1 coin and 1 donor ticket.. i want it to just say donor ticket
and when u buy it.. u need to have coins and it cost 1 coin and 1 donor ticket.
there my code in client.javaCode:if (MyShopID == 54) { if (playerItemsN[Slot2] >= TotPrice2) { if (freeSlots() > 0) { deleteItem(12363, GetItemSlot(12363), TotPrice2); addItem(itemID, 1); server.shopHandler.ShopItemsN[MyShopID][fromSlot] -= 1; server.shopHandler.ShopItemsDelay[MyShopID][fromSlot] = 0; if ((fromSlot + 1) > server.shopHandler.ShopItemsStandard[MyShopID]) { server.shopHandler.ShopItems[MyShopID][fromSlot] = 0; } } else { sM("Not enough space in your inventory."); break; } } else { sM("Not enough Donor Tickets for this item."); } }
this is why half of this community will not get anywhere jumping into a language they do not understand smh
OT how about you post the code we can help. we are not psychic and know exactly is on your source...
... its called help
This is a Really Easy Fix im not sure about the Buy 2 of them but i know why it cost coins
1.
this code.
u have to have that code Well just Add aCode:if (MyShopID == 8) sM(getItemName(removeID) + ": currently costs " + ShopValue + " tokkul" + ShopAdd);
at the end so it looks like thisCode:break;
that will stop The Coins From costing itCode:if (MyShopID == 8) sM(getItemName(removeID) + ": currently costs " + ShopValue + " tokkul" + ShopAdd); break;
it doesnt work.. this is what i have in client.java
please try to help againCode:if (MyShopID == 54) { if (playerItemsN[Slot2] >= TotPrice2) { if (freeSlots() > 0) { deleteItem(12363, GetItemSlot(12363), TotPrice2); addItem(itemID, 1); server.shopHandler.ShopItemsN[MyShopID][fromSlot] -= 1; server.shopHandler.ShopItemsDelay[MyShopID][fromSlot] = 0; if ((fromSlot + 1) > server.shopHandler.ShopItemsStandard[MyShopID]) { server.shopHandler.ShopItems[MyShopID][fromSlot] = 0; } } else { sM("Not enough space in your inventory."); break; } } else { sM("Not enough Donor Tickets for this item."); } }
i added break; and i got a error..Code:if (MyShopID == 54) { if (playerItemsN[Slot2] >= TotPrice2) { if (freeSlots() > 0) { deleteItem(12363, GetItemSlot(12363), TotPrice2); addItem(itemID, 1); server.shopHandler.ShopItemsN[MyShopID][fromSlot] -= 1; server.shopHandler.ShopItemsDelay[MyShopID][fromSlot] = 0; if ((fromSlot + 1) > server.shopHandler.ShopItemsStandard[MyShopID]) { server.shopHandler.ShopItems[MyShopID][fromSlot] = 0; } } else { sM("Not enough space in your inventory."); break; } } else { sM("Not enough Donor Tickets for this item."); } } break;
Code:.\client.java:10196: unreachable statement if (MyShopID == 8) { ^ 1 error Press any key to continue . . .
bump
stop using delta anyway
bump
| « [508] Need Help with a 508! [508] | [PI] Commands » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |