Remove that bracket after the else..
|
So i was adding this in shopassistant.java
But i had to make a new } else statement and here is the error i got
Here is what it looks like all together
if (c.myShopId == 17) {
if (c.magePoints >= getSpecialItemValue(itemID)) {
if (c.getItems().freeSlots() > 0){
c.magePoints -= getSpecialItemValue(itemID);
c.getItems().addItem(itemID,1);
c.getItems().resetItems(3823);
}
} else {
c.sendMessage("You do not have enough points to buy this item.");
}
} else if (c.myShopId == 544) {
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.");
} else }
if (c.myShopId == 18) {
if (c.pcPoints >= getSpecialItemValue(itemID)) {
if (c.getItems().freeSlots() > 0){
c.pcPoints -= getSpecialItemValue(itemID);
c.getItems().addItem(itemID,1);
c.getItems().resetItems(3823);
}
} else {
c.sendMessage("You do not have enough points to buy this item.");
}
}
Remove that bracket after the else..
remove it or add a new bracket?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |