EventManager.getSingleton().addEvent(new Event() {
|
does anyone know why i get this error?Code:.\Client.java:1519: addEvent(Event,int) in EventManager cannot be applied to (<a nonymous Client.Event>,int) EventManager.getSingleton().addEvent( ^ Note: .\Stream.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error
EventManager.getSingleton().addEvent(player, new Event() {
player for you would be the client so you might need to change it to client.
luke your code is the same as mine just moving the new event up 1 line
It's expecting an Event object (new Event()) then an int, which is the delay
That's not 100% right, but it's something along those lines.Code:EventManager.getSingleton().addEvent(new Event() { @override public void execute(Eventcontainer c) { } } delay);
i know heres my code
Code:EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { Yell("Visit our forums at www.blahblah.com!"); // c.stop(); commented out as not needed } }, 60000); // executes every 60,000 ms = 60 seconds
i put it in run() im not sure if thats right....
graham said to put it in startup code....
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |