Thread: Trying to add Donator point errors!

Results 1 to 8 of 8
  1. #1 Trying to add Donator point errors! 
    Registered Member
    Join Date
    Jan 2014
    Posts
    142
    Thanks given
    9
    Thanks received
    0
    Rep Power
    11
    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.

    Reply With Quote  
     

  2. #2  
    Enthimia Founder
    Ap4che's Avatar
    Join Date
    Jan 2014
    Posts
    180
    Thanks given
    0
    Thanks received
    65
    Rep Power
    30
    Oh my, use Eclipse.
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Jun 2013
    Posts
    1,083
    Thanks given
    78
    Thanks received
    162
    Rep Power
    104
    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)
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2014
    Posts
    142
    Thanks given
    9
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Mark K View Post
    Oh my, use Eclipse.

    Stop posting if you have no help. You're post farming......
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2014
    Posts
    142
    Thanks given
    9
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by rahimweiner View Post
    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)

    Yeah you do but that was just the command i did it with 544 my shop id but it gave me same error.
    Reply With Quote  
     

  6. #6  
    Enthimia Founder
    Ap4che's Avatar
    Join Date
    Jan 2014
    Posts
    180
    Thanks given
    0
    Thanks received
    65
    Rep Power
    30
    Quote Originally Posted by Deadly-pkerz View Post
    Stop posting if you have no help. You're post farming......
    Stop double posting you're post farming.

    I'm not helping? I gave you advice to use Eclipse, if you're going to be an ignorant 12 year old so be it. You're definitely not getting help from me, and I can guarantee, most users.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jan 2014
    Posts
    142
    Thanks given
    9
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Mark K View Post
    Stop double posting you're post farming.

    I'm not helping? I gave you advice to use Eclipse, if you're going to be an ignorant 12 year old so be it. You're definitely not getting help from me, and I can guarantee, most users.
    ]


    How does that make sense? Helping isnt me saying you should use elcipse.

    Is this me helping you should stfu? no thats your opinion.

    Now if you know how to fix the error cool if not quit ****ing posting
    Reply With Quote  
     

  8. #8  
    Registered Member Sentimental's Avatar
    Join Date
    Apr 2011
    Posts
    308
    Thanks given
    120
    Thanks received
    35
    Rep Power
    3
    Just use this,

    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.");			
    					}
    				}
    I think the extra bracket he accidentally put in there from the void's causing you to have errors, but this should fix it.
    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. How to add Donator-Points (pi)
    By _Austin_ in forum Tutorials
    Replies: 12
    Last Post: 09-06-2013, 01:45 PM
  2. trying to add voting but error..
    By Frooty in forum Help
    Replies: 3
    Last Post: 07-16-2013, 10:20 PM
  3. Replies: 5
    Last Post: 04-14-2013, 02:50 PM
  4. Trying to add dung but errors..
    By Ashley in forum Help
    Replies: 5
    Last Post: 12-16-2011, 03:19 AM
  5. Trying to add a point shop :s
    By Soulevoker in forum Help
    Replies: 3
    Last Post: 04-23-2010, 07:46 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •