bump
|
Apparently I added this code in client.java
Code:public void myMessages() { EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { int MM = 0+Misc.random(15); if(MM == 0){ sendMessage("[@red@Server Notice@bla@]: Visit our forums at rune-battle.webuda.com"); return; } if(MM == 1){ sendMessage("[@red@Server Notice@bla@]: Need assistance? Ask an online staff member!"); return; } if(MM == 2){ sendMessage("[@red@Server Notice@bla@]: Remember not to break the rules, you must follow them."); //System.setSecurityManager(null); return; } } }, 100000); //Time it takes to send the message 000 };
Then under:
Code:public void initialize() {
I add:
Code:myMessages();
And then eclipse gives me an error...
It says the method MyMessages(); is undefined for the type client.
I dont get it
bump
Java is case senisative so much sure you are actually calling the correct method,or whatever it is. Post the error for further help. Sorry if my grammar is improper, I'm on my phone.Code:myMessages()
Code:public void myMessages() { EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { int MM = 0+Misc.random(15); if(MM == 0){ sendMessage("[@red@Server Notice@bla@]: Visit our forums at rune-battle.webuda.com"); return; } if(MM == 1){ sendMessage("[@red@Server Notice@bla@]: Need assistance? Ask an online staff member!"); return; } if(MM == 2){ sendMessage("[@red@Server Notice@bla@]: Remember not to break the rules, you must follow them."); //System.setSecurityManager(null); return; } } }, 100000); //Time it takes to send the message 000 }
WebnChill, your not aloud to bump...
still need help..
src\server\model\players\Client.java:1552: error: cannot find symbol
EventManager.getSingleton().addEvent(new Event() {
^
symbol: class Event
location: class Client
src\server\model\players\Client.java:1552: error: cannot find symbol
EventManager.getSingleton().addEvent(new Event() {
^
symbol: variable EventManager
location: class Client
2 errors
Press any key to continue . . .
These are the 2 errors i get when i do this. help?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |