hi guys how is every one
will it is my firs time i ask for help here
i got this error what i tried to add :: pnpc to my server
the error :
Code:
client.java:3814: cannot find symbol
symbol : variable isNpc
location: class client
isNpc = true;
^
Note: stream.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Finished!
Press any key to continue . . .
the command :
Code:
if (command.startsWith("pnpc")) {
try {
int newNPC = Integer.parseInt(command.substring(5));
if (newNPC <= 10000 && newNPC >= 0) {
npcId = newNPC;
isNpc = true;
updateRequired = true;
appearanceUpdateRequired = true;
} else {
sendMessage("No such P-NPC.");
}
} catch(Exception e) {
sendMessage("Wrong Syntax! Use as :npc #");
}
}
any ideas ?? need your help pro coders