Thread: [508] last trading error

Results 1 to 4 of 4
  1. #1 [508] last trading error 
    ic e
    Guest
    i used this tut...
    http://www.rune-server.org/showthread.php?t=123611
    this my last error anysuggestions welcome relly need help...
    Code:
    .\palidino76\rs2\players\ptrade\PTrade.java:130: cannot find symbol
    symbol  : method haveItem(palidino76.rs2.players.Player,int,int,int)
    location: class palidino76.rs2.players.items.PlayerItems
            if (!pi.haveItem(p, itemId, pi.getItemSlot(p,itemId), amount)) {
                   ^
    1 error
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Sep 2006
    Age
    30
    Posts
    2,106
    Thanks given
    73
    Thanks received
    54
    Rep Power
    491
    Code:
    public boolean haveItem(Player p, int itemID) {
    return haveItem(p,itemID,1);
    }
    public boolean haveItem(Player p, int itemID, int amount) {
    int found = 0;
    for (int i = 0; i < p.items.length; i++) {
    if (p.items[i] == itemID) {
    if(p.itemsN[i] >= amount)
    return true;
    else
    found++;
    }
    }
    if(found >= amount)
    return true;
    return false;
    }
    Add that in PlayerItems.Java under
    Code:
    public class PlayerItems {
    Reply With Quote  
     

  3. #3  
    ic e
    Guest
    it worked tyvm rep++ for you
    Reply With Quote  
     

  4. #4  
    Registered Member
    Santaher0's Avatar
    Join Date
    Sep 2008
    Posts
    2,033
    Thanks given
    324
    Thanks received
    49
    Rep Power
    1282
    lol thanks pixel i needed this not for trading but i did for magiconnpc
    - Support my project ArkScape

    - Santaher0's MusicBot

    - Santaher0's MovieBot
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •