Thread: [718]Help with this error?

Results 1 to 2 of 2
  1. #1 [718]Help with this error? 
    Registered Member
    Join Date
    May 2013
    Posts
    546
    Thanks given
    4
    Thanks received
    1
    Rep Power
    11
    This is my code

    Code:
    if (cmd[0].equals("meele")) {
    			int cape = player.getEquipment().getItems(20771, 1);
    			player.getEquipment().getItems().set(Equipment.SLOT_CAPE, new Item(cape));
    			player.getEquipment().refresh();
    			player.getAppearence().generateAppearenceData();
    	return true;
    		}
    This is the error then.

    Code:
    starting...
    src\com\rs\game\player\content\Commands.java:546: error: method getItems in cla
    s Equipment cannot be applied to given types;
                            int cape = player.getEquipment().getItems(20771, 1);
                                                            ^
      required: no arguments
      found: int,int
      reason: actual and formal argument lists differ in length
    1 error

    I would add a command like "meele" that add you full dharok gear or some...
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Sep 2012
    Posts
    133
    Thanks given
    4
    Thanks received
    1
    Rep Power
    10
    Have you heard of IDE?
    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. I need help with this Error.
    By 'Brad in forum Help
    Replies: 1
    Last Post: 10-07-2009, 01:25 PM
  2. Any help with this error?
    By range to dds in forum Help
    Replies: 1
    Last Post: 08-25-2009, 11:13 PM
  3. Replies: 1
    Last Post: 08-02-2009, 06:03 PM
  4. help with this error
    By str tr in forum Help
    Replies: 10
    Last Post: 05-23-2009, 02:10 PM
  5. I need help with this error
    By $anta2 in forum Help
    Replies: 6
    Last Post: 03-27-2009, 03:02 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
  •