CycleEventHandler.getSingleton().new CycleEventHandler() {
Look @ that line.
|
Code:public void Messages() { CycleEventHandler.getSingleton().new CycleEventHandler() { public void execute(CycleEventContainer c) { int Message = 0; Message = Misc.random(5); if (Message == 0) { sendMessage("Be sure to register on the forums at @[email protected]@bla@."); } else if (Message == 1) { sendMessage("If you wish to donate, type in @blu@::donate@bla@!"); } else if (Message == 2) { sendMessage("Please report all bugs to the forums!"); } else if (Message == 3) { sendMessage("Please vote by typing in @blu@::vote@bla@!"); } else if (Message == 4) { sendMessage("Enjoy Rune-Tech & tell your friends!"); } } }, 160000); //Milliseconds };I've done everything my small mind can think of. I added it's god damn ;, but noooo it got even more butthurt when I did that. So I some other things but noooooooo. Help plz.Code:src\server\model\players\Client.java:153: error: ';' expected }, 160000); //Milliseconds ^ 1 error Press any key to continue . . .
CycleEventHandler.getSingleton.new CycleEventHandler() { = No.
I have no clue, but I was to guess then I think it would be this:
Notice the Comma or ,public void Messages() {
CycleEventHandler.getSingleton().new CycleEventHandler() {
public void execute(CycleEventContainer c) {
int Message = 0;
Message = Misc.random(5);
if (Message == 0) {
sendMessage("Be sure to register on the forums at @[email protected]@bla@.");
} else if (Message == 1) {
sendMessage("If you wish to donate, type in @blu@:onate@bla@!");
} else if (Message == 2) {
sendMessage("Please report all bugs to the forums!");
} else if (Message == 3) {
sendMessage("Please vote by typing in @blu@::vote@bla@!");
} else if (Message == 4) {
sendMessage("Enjoy Rune-Tech & tell your friends!");
}
}
}, 160000); //Milliseconds
};
That's exactly what I have already that's giving me that error.
Do what the compiler wants then it realises it's wrong then you feel better about yourself.
Dude. It won't admit it's wrong, it's like a women. No offense to you lady members out there.
don't use cycleEvents for large events, I would use tick manager or task manager
It aint a large event. It sends a message........................
Remove the ","
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |