Oh my, use Eclipse.
|
Ok so i was following this guide, http://www.rune-server.org/runescape...r-shop-pi.html
And im on the last steps but im stuck can someone help me?
Im on step
Code: public void handleOtherShop(int itemID) {
Then under that add: }
if (c.myShopId == ##) {
if (c.DonorPoints >= getSpecialItemValue(itemID)) {
if (c.getItems().freeSlots() > 0){
c.DonorPoints -= getSpecialItemValue(itemID);
c.getItems().addItem(itemID,1);
c.getItems().resetItems(3823);
}
} else {
c.sendMessage("You do not have enough Donator Points to buy this item.");
}
But when i add this under is i get these errors.
Oh my, use Eclipse.
1st of all use eclipse because it'll tell you where you exactly screwed up
2nd of all I'm pretty much sure where it says if (c.myShopId == ##) { You have to put in a value there I believe (where I've highlighted the red)
Just use this,
I think the extra bracket he accidentally put in there from the void's causing you to have errors, but this should fix it.Code:public void handleOtherShop(int itemID) { if (c.myShopId == ##) { if (c.DonorPoints >= getSpecialItemValue(itemID)) { if (c.getItems().freeSlots() > 0){ c.DonorPoints -= getSpecialItemValue(itemID); c.getItems().addItem(itemID,1); c.getItems().resetItems(3823); } } else { c.sendMessage("You do not have enough Donator points to buy this item."); } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |