put public static client c; inside of the NPCDialogue class
|
I need help with this NPCDialogue class I'm working on, I got the class setup correctly, but I get this errors:
the code:Code:NPCDialogue.java:7: class, interface, or enum expected public static client c; ^ 1 error You have sucsessfully compiled Press any key to continue . . .
[I put the code like this:Code:public static client c;
^ Then the rest of the code is beneath that. Idk what to do.Code:/* *NPCDialogue *Class by Pure Demons (Zulf) */ import java.io.*; public static client c; public class NPCDialogue { public static void talk(String text, int npc) {
Help?
put public static client c; inside of the NPCDialogue class
I do then I get:
Help please.Code:client.java:14729: cannot find symbol symbol : variable talk location: class client NPCDialogue.NPCDialogue(talk); ^ client.java:14730: cannot find symbol symbol : variable talk2 location: class client NPCDialogue.NPCDialogue(talk2); ^ client.java:14731: cannot find symbol symbol : variable talk3 location: class client NPCDialogue.NPCDialogue(talk3); ^ client.java:14732: cannot find symbol symbol : variable talk4 location: class client NPCDialogue.NPCDialogue(talk4); ^ client.java:14733: cannot find symbol symbol : variable playertalk location: class client NPCDialogue.NPCDialogue(playertalk); ^ client.java:14734: cannot find symbol symbol : variable playertalk2 location: class client NPCDialogue.NPCDialogue(playertalk2); ^ client.java:14735: cannot find symbol symbol : variable playertalk3 location: class client NPCDialogue.NPCDialogue(playertalk3); ^ client.java:14736: cannot find symbol symbol : variable playertalk4 location: class client NPCDialogue.NPCDialogue(playertalk4); ^ Note: stream.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 8 errors You have sucsessfully compiled Press any key to continue . . .
talk, talk2, talk3 etc arent declared. i dont know what they're supposed to be, so i cant really help you with that
They are declared, it's just they are in NPCDialogue.java and I want client.java to load them, like TextHandler.java.
have you imported NPCDialogue into client?
No, I'm new, help please? Sorry I'm so annoying, heres my msn: [email protected]
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |