Thread: devo pvnpc rip

Results 1 to 3 of 3
  1. #1 devo pvnpc rip 
    Registered Member
    Join Date
    Sep 2009
    Posts
    527
    Thanks given
    22
    Thanks received
    10
    Rep Power
    30
    i was instructed to rip devo's pvnpc
    but am facing 1 problem
    this >.>


    public Distance(NPC NPC) {
    this.n = NPC;
    }



    error:

    Code:
    COMPILING..
    NPC.java:19: invalid method declaration; return type required
            public Distance(NPC NPC) {
                   ^
    1 error
    DivinePk - chris .
    Press any key to continue . . .


    im using delta
    :trollface:
    Working on a Project with Shoopdawhoop =)
    Spoiler for lol:
    [img]http://2.bp.blogspot.com/_eQXh9P3bqks/S-ewcqWSXyI/AAAAAAAABUI/6i3xd_77cVk/s1600/****-bear-cake.jpg[/img]
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2010
    Posts
    309
    Thanks given
    0
    Thanks received
    3
    Rep Power
    2
    pointing at D try a small d
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    Distance cannot be the name of the file since it thinks your doing somthing like this

    Code:
    public int somthing()
      return 1;
    }
    but your trying to do this
    Code:
    public class distance {
         private NPC n;
    
         public distance(NPC n) {
              this.n = n;
         }
    
    }
    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
  •