quote:
Originally posted by Silentdragon
code:
if(counting)
{
return "";
}
That returns nothing making your script not work. Return msg.
If I would return msg, you would see "/countdown"... And I dont want it to display the command!
quote:
code:
MsgPlus.AddTimer("commandCountDown", 1000);
One second timer.
code:
else
{
Debug.trace("Else");
sendMessage(counter);
Add
code:
MsgPlus.AddTimer("commandCountDown", 1000);
Timers run once then go away, you need to make it run each time you need it to.
I fixed this and now he does display 'Happy new year' after 5 seconds... But I also want him to display '5', '4', '3', ...
And do you know the answer to my other questions ?