Thread: npchandler error

Results 1 to 5 of 5
  1. #1 npchandler error 
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    3,114
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    i added a void in my npchandler.java, and i always get this..
    Code:
    NPCHandler.java:24: newNPC(int,int,int,int,int,int,int,int,int,int) in NPCHandle
    r cannot be applied to (int,int,int,int,int,int,int,int,int,int,boolean)
                    server.npcHandler.newNPC(npcID, (absX), (absY), height, absX + 3
    , absY + 3, absX - 3, absY - 3, 0, server.npcHandler.GetNpcListHP(npcID), false)
    ;
                                     ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 error
    Finished!
    Press any key to continue . . .
    how do i fix? im using fd 2.4 btw

    ---------- Post added at 05:39 PM ---------- Previous post was at 05:19 PM ----------

    sorry for bump, but im really having trouble on this and i need a quick fix.

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Registered Member
    minutes's Avatar
    Join Date
    Apr 2008
    Posts
    1,926
    Thanks given
    2
    Thanks received
    19
    Rep Power
    465
    what did you try to add?

    and you don't got void for that
    [Only registered and activated users can see links. ]
    click banner to join gtracer!
    Reply With Quote  
     

  3. #3  
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    3,114
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    Code:
    public void spawnANPC(int npcID, int absX, int absY, int height)
    	{
    		server.npcHandler.newNPC(npcID, (absX), (absY), height, absX + 3, absY + 3, absX - 3, absY - 3, 0, server.npcHandler.GetNpcListHP(npcID), false);
    	}

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Ex RSPS-cleaner

    SWAT's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    5,487
    Thanks given
    403
    Thanks received
    599
    Rep Power
    3609
    if you read your error it says

    newNPC(int,int,int,int,int,int,int,int,int,int) in NPCHandler cannot be applied to
    ..............(int,int,int,int,int,int,int,int,int ,int,boolean)


    which shows you, you have a boolean at the end that isnt needed

    or if you do want it there that the method doesnt exist
    Reply With Quote  
     

  5. #5  
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    3,114
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    so i should delete the extra
    Code:
    , false
    ?
    edit- (: it worked, wow i suck loll.

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for [Only registered and activated users can see links. ]
    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
  •