Thread: (server sided)8 error adding new hitmarks (PI)

Results 1 to 4 of 4
  1. #1 (server sided)8 error adding new hitmarks (PI) 
    Registered Member
    Join Date
    Mar 2013
    Posts
    46
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    will thank if someone help me with this I really can't manage to solve it.. searched on those java site for error to be applied to given types error explanation but I don't understand..


    src\server\model\players\CombatAssistant.java:285: error: cannot find symbol
    public void appendHit(NPC n, int damage, int mask, int icon, int damageM
    ask, boolean maxHit) {
    ^
    symbol: class NPC
    location: class CombatAssistant
    src\server\model\players\Player.java:27: error: illegal forward reference
    public int maxHp = getLevelForXP(playerXP[3]);
    ^
    src\server\model\players\CombatAssistant.java:350: error: method handleHitMask i
    n class Player cannot be applied to given types;
    c.handleHitMask(c.playerLevel[3]/10);
    ^
    required: int,int,int
    found: int
    reason: actual and formal argument lists differ in length
    src\server\model\players\CombatAssistant.java:1144 : error: method handleHitMask
    in class Player cannot be applied to given types;
    c.handleHitMask(c.playerLevel[3]/10);
    ^
    required: int,int,int
    found: int
    reason: actual and formal argument lists differ in length
    src\server\model\players\CombatAssistant.java:1444 : error: method handleHitMask
    in class Player cannot be applied to given types;
    Server.playerHandler.players[playerId].h
    andleHitMask(damage);
    ^
    required: int,int,int
    found: int
    reason: actual and formal argument lists differ in length
    src\server\model\players\CombatAssistant.java:1657 : error: method handleHitMask
    in class Player cannot be applied to given types;
    Server.playerHandler.players[i].handleHitMask(damage);
    ^
    required: int,int,int
    found: int
    reason: actual and formal argument lists differ in length
    src\server\model\players\CombatAssistant.java:4234 : error: method handleHitMask
    in class Player cannot be applied to given types;
    o.handleHitMask(damage);
    ^
    required: int,int,int
    found: int
    reason: actual and formal argument lists differ in length
    src\server\model\npcs\NPCHandler.java:2046: error: method handleHitMask in class
    Player cannot be applied to given types;
    c.handleHitMask(damage);
    ^
    required: int,int,int
    found: int
    reason: actual and formal argument lists differ in length
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    8 errors
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    May 2011
    Posts
    1,773
    Thanks given
    854
    Thanks received
    853
    Rep Power
    0
    can not find symbol = you need to declare those variables
    error: method handleHitMask
    in class Player cannot be applied to given types = you are calling method(0) and the method goes like method(0,0,0)

    if i remember correctly; handlehitmask(damage, mask , attack type );

    (zero for normal hit i belive)
    (0 melee, 1 range, 2 magic)
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Mar 2013
    Posts
    46
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Poesy700 View Post
    can not find symbol = you need to declare those variables
    error: method handleHitMask
    in class Player cannot be applied to given types = you are calling method(0) and the method goes like method(0,0,0)

    if i remember correctly; handlehitmask(damage, mask , attack type );

    (zero for normal hit i belive)
    (0 melee, 1 range, 2 magic)
    i see but where do i add 1,2,3.. ;s

    this is the tut i followed: http://www.rune-server.org/runescape...-critical.html


    fixed cannot find symbol one, thanks now i need others :/
    Reply With Quote  
     

  5. #4  
    Banned

    Join Date
    May 2011
    Posts
    1,773
    Thanks given
    854
    Thanks received
    853
    Rep Power
    0
    Quote Originally Posted by poutine875 View Post
    i see but where do i add 1,2,3.. ;s

    this is the tut i followed: http://www.rune-server.org/runescape...-critical.html


    fixed cannot find symbol one, thanks now i need others :/
    everywhere where it says;

    handleHitMask(damage);

    change to

    handleHitMask(damage, 0 , attacktype);


    and attacktype is the # i explained in my other post
    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. Replies: 4
    Last Post: 02-17-2012, 04:14 PM
  2. Highscores, server sided error 30$
    By Linus in forum Help
    Replies: 9
    Last Post: 11-14-2010, 05:50 PM
  3. Adding new animations... [PI]
    By Swifty in forum Help
    Replies: 3
    Last Post: 06-28-2010, 02:42 AM
  4. Replies: 8
    Last Post: 04-23-2010, 03:18 AM
  5. error adding new interface
    By joey. in forum Help
    Replies: 2
    Last Post: 02-20-2009, 12:57 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
  •