Thread: Compiler Error

Results 1 to 8 of 8
  1. #1 Compiler Error 
    Registered Member
    Join Date
    Apr 2013
    Posts
    37
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Hey guys,

    Recently was trying to add a new Point system which is quite easy to do. I completed adding the points (they are called Zpoints). I added an NPC that give you the points, but I got this 1 error:
    source\server\model\npcs\NPCHandler.java:2489: error: cannot find symbol
    c.Zpoints += 1;
    ^
    symbol: variable c
    location: class NPCHandler
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    If anyone can fix please tell me! Will REP ++

    Skype - CallumNzX
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Mar 2013
    Posts
    3,036
    Thanks given
    82
    Thanks received
    375
    Rep Power
    0
    Go to client class and add in
    Code:
    public int Zpoints;
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2013
    Posts
    37
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    The client class? or java?
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Sep 2011
    Posts
    177
    Thanks given
    32
    Thanks received
    13
    Rep Power
    0
    client class = the client.java file.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2013
    Posts
    37
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Okay, Figured as much... but where in there should I add it?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Apr 2013
    Posts
    37
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Still didn't help, I put in client file correctly.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Apr 2013
    Age
    30
    Posts
    117
    Thanks given
    12
    Thanks received
    24
    Rep Power
    0
    your ether not invoking the client object c correctly or you haven't got one altogether inside your npc handler.
    Reply With Quote  
     

  8. #8  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    What 'Unix' said: the program doesn't recognize the variable c, it simply can't find the one. A decent IDE would've shown you that even before you hit the compile button.
    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. Java Help + Compiler Errors + highscores help
    By Silenced in forum Requests
    Replies: 6
    Last Post: 10-16-2008, 03:38 PM
  2. Basic Compile Errors
    By Daniel in forum Tutorials
    Replies: 4
    Last Post: 09-17-2007, 12:54 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
  •