still need help..
|
|

trying to get this out of my process() btw i just added this..
er how would i use that with events? rep+Code:if (dueltimer > 0) { dueltimer -= 1; if (dueltimer == 7) { txt4 = "3"; string4UpdateRequired = true; updateRequired = true; } if (dueltimer == 5) { txt4 = "2"; string4UpdateRequired = true; updateRequired = true; } if (dueltimer == 3) { txt4 = "1"; string4UpdateRequired = true; updateRequired = true; } if (dueltimer == 1) { txt4 = "FIGHT!"; string4UpdateRequired = true; updateRequired = true; } }

still need help..
It would probably be like this..
orCode:EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { if (dueltimer > 0) { dueltimer -= 1; if (dueltimer == 7) { txt4 = "3"; string4UpdateRequired = true; updateRequired = true; } if (dueltimer == 5) { txt4 = "2"; string4UpdateRequired = true; updateRequired = true; } if (dueltimer == 3) { txt4 = "1"; string4UpdateRequired = true; updateRequired = true; } if (dueltimer == 1) { txt4 = "FIGHT!"; string4UpdateRequired = true; updateRequired = true; c.stop(); } } } }, 1000);
Code:EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { if (dueltimer > 0) { dueltimer -= 1; if (dueltimer == 7) { txt4 = "3"; string4UpdateRequired = true; updateRequired = true; } if (dueltimer == 5) { txt4 = "2"; string4UpdateRequired = true; updateRequired = true; } if (dueltimer == 3) { txt4 = "1"; string4UpdateRequired = true; updateRequired = true; } if (dueltimer == 1) { txt4 = "FIGHT!"; string4UpdateRequired = true; updateRequired = true; c.stop(); } } else { c.stop(); } } }, 1000);

where would i pt that lmao i got 11 errors...
I can't tell u where to put it.... you have to figure that out. I don't know what source your using.

devo
show me the errors lol.

open up ur EventManager class and look for "addEvent" and post the code.

events.add(new EventContainer(event, tick));
notify();
}
| « Hosting Problemm... | [HELP Get rid of botnet] » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |