Thread: Need help urgen, paying with rep+ Can give you my tv info

Results 1 to 6 of 6
  1. #1 Need help urgen, paying with rep+ Can give you my tv info 
    Registered Member
    Join Date
    Nov 2011
    Posts
    120
    Thanks given
    7
    Thanks received
    1
    Rep Power
    11
    Hey I was trying to add a donator shop, but now I'm stuck on an error I cant fix, if anyone here can help me, or understands it please add me on skype pjusken.putte

    Code:
    src\server\model\shops\ShopAssistant.java:1013: error: 'else' without 'if'
                                    } else if (c.myShopId == 103) {
                                      ^
    1 error
    Trykk en tast for å fortsette...
    or Reply or send me a PM and i'll send you my TV Info. been trying for a few days now. :/
    Reply With Quote  
     

  2. #2  
    Quality over quantity


    Join Date
    Dec 2011
    Age
    28
    Posts
    1,318
    Thanks given
    74
    Thanks received
    157
    Rep Power
    110
    Paste the code for what you have for your donator shop in shopassistant.javaPaste the code for what you have for your donator shop in shopassistant.java
    Last edited by Joker; 04-18-2013 at 03:47 AM.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Nov 2011
    Posts
    120
    Thanks given
    7
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Visuall View Post
    Paste the code for what you have for your donator shop in shopassistant.java
    } else if (c.myShopId == 103) {
    if (c.DonorPoints >= TotPrice2) {
    if (c.getItems().freeSlots() > 0) {
    buyDelay = System.currentTimeMillis();
    c.DonorPoints -= TotPrice2;
    c.getItems().addItem(itemID, 1);
    ShopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1;
    ShopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0;
    if ((fromSlot + 1) > ShopHandler.ShopItemsStandard[c.myShopId]) {
    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 Donator Points.");
    break;
    }


    THANKS A MIL!
    Reply With Quote  
     

  5. #4  
    Registered Member
    Markian's Avatar
    Join Date
    Apr 2009
    Posts
    613
    Thanks given
    17
    Thanks received
    26
    Rep Power
    373
    Try changing

    Code:
    } else if (c.myShopId == 103) {
    to

    Code:
    if (c.myShopId == 103) {
    Reply With Quote  
     

  6. #5  
    Registered Member
    Join Date
    Nov 2011
    Posts
    120
    Thanks given
    7
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Markian View Post
    Try changing

    Code:
    } else if (c.myShopId == 103) {
    to

    Code:
    if (c.myShopId == 103) {
    That gave me 27 errors. :/

    src\server\model\shops\ShopAssistant.java:1144: error: illegal start of expressi
    on
    public void handleOtherShop(int itemID) {
    ^
    src\server\model\shops\ShopAssistant.java:1144: error: illegal start of expressi
    on
    public void handleOtherShop(int itemID) {
    ^
    src\server\model\shops\ShopAssistant.java:1144: error: ';' expected
    public void handleOtherShop(int itemID) {
    ^
    src\server\model\shops\ShopAssistant.java:1144: error: ';' expected
    public void handleOtherShop(int itemID) {
    ^
    src\server\model\shops\ShopAssistant.java:1234: error: illegal start of expressi
    on
    public void openSkillCape() {
    ^
    src\server\model\shops\ShopAssistant.java:1234: error: illegal start of expressi
    on
    public void openSkillCape() {
    ^
    src\server\model\shops\ShopAssistant.java:1234: error: ';' expected
    public void openSkillCape() {
    ^
    src\server\model\shops\ShopAssistant.java:1244: error: illegal start of expressi
    on
    public static final int[] skillCapes = { 9747, 9753, 9750, 9768, 9756,
    ^
    src\server\model\shops\ShopAssistant.java:1244: error: illegal start of expressi
    on
    public static final int[] skillCapes = { 9747, 9753, 9750, 9768, 9756,
    ^
    src\server\model\shops\ShopAssistant.java:1244: error: ';' expected
    public static final int[] skillCapes = { 9747, 9753, 9750, 9768, 9756,
    ^
    src\server\model\shops\ShopAssistant.java:1248: error: illegal start of expressi
    on
    public int get99Count() {
    ^
    src\server\model\shops\ShopAssistant.java:1248: error: ';' expected
    public int get99Count() {
    ^
    src\server\model\shops\ShopAssistant.java:1258: error: illegal start of expressi
    on
    public void setupSkillCapes(int capes, int capes2) {
    ^
    src\server\model\shops\ShopAssistant.java:1258: error: illegal start of expressi
    on
    public void setupSkillCapes(int capes, int capes2) {
    ^
    src\server\model\shops\ShopAssistant.java:1258: error: ';' expected
    public void setupSkillCapes(int capes, int capes2) {
    ^
    src\server\model\shops\ShopAssistant.java:1258: error: <identifier> expected
    public void setupSkillCapes(int capes, int capes2) {
    ^
    src\server\model\shops\ShopAssistant.java:1258: error: not a statement
    public void setupSkillCapes(int capes, int capes2) {
    ^
    src\server\model\shops\ShopAssistant.java:1258: error: ';' expected
    public void setupSkillCapes(int capes, int capes2) {
    ^
    src\server\model\shops\ShopAssistant.java:1285: error: illegal start of expressi
    on
    public void skillBuy(int item) {
    ^
    src\server\model\shops\ShopAssistant.java:1285: error: illegal start of expressi
    on
    public void skillBuy(int item) {
    ^
    src\server\model\shops\ShopAssistant.java:1285: error: ';' expected
    public void skillBuy(int item) {
    ^
    src\server\model\shops\ShopAssistant.java:1285: error: ';' expected
    public void skillBuy(int item) {
    ^
    src\server\model\shops\ShopAssistant.java:1313: error: illegal start of expressi
    on
    public void buyVoid(int item) {
    ^
    src\server\model\shops\ShopAssistant.java:1313: error: illegal start of expressi
    on
    public void buyVoid(int item) {
    ^
    src\server\model\shops\ShopAssistant.java:1313: error: ';' expected
    public void buyVoid(int item) {
    ^
    src\server\model\shops\ShopAssistant.java:1313: error: ';' expected
    public void buyVoid(int item) {
    ^
    src\server\model\shops\ShopAssistant.java:1317: error: reached end of file while
    parsing
    }
    ^
    27 errors
    Trykk en tast for å fortsette...
    Reply With Quote  
     

  7. #6  
    Quality over quantity


    Join Date
    Dec 2011
    Age
    28
    Posts
    1,318
    Thanks given
    74
    Thanks received
    157
    Rep Power
    110
    Quote Originally Posted by Markian View Post
    Try changing

    Code:
    } else if (c.myShopId == 103) {
    to

    Code:
    if (c.myShopId == 103) {
    This should work. Like your compile error said. You should only have an else if statement if there is already an if statement, which there doesn't seem to be.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Need help urgen, paying with rep+
    By Zenom in forum Help
    Replies: 5
    Last Post: 04-16-2013, 01:23 AM
  2. Replies: 4
    Last Post: 09-19-2012, 09:56 PM
  3. Replies: 0
    Last Post: 04-05-2011, 03:38 PM
  4. need help will pay with rs acc :d
    By Neekage in forum Help
    Replies: 1
    Last Post: 09-16-2009, 07:11 AM
  5. Need help will pay cash or rep
    By Trock in forum Help
    Replies: 4
    Last Post: 08-21-2009, 05:01 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •