Go to client class and add in
Code:public int Zpoints;
|
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:
If anyone can fix please tell me! Will REP ++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 . . .
Skype - CallumNzX
Go to client class and add in
Code:public int Zpoints;
The client class? or java?
client class = the client.java file.
Okay, Figured as much... but where in there should I add it?
Still didn't help, I put in client file correctly.
your ether not invoking the client object c correctly or you haven't got one altogether inside your npc handler.
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.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |