quote:
Originally posted by RaceProUK
Why have you put OnEvent_Timer() inside the other function? Put it outside.
You mean like this? :
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
MsgPlus.AddTimer("yoyo", 1000)
function OnEvent_Timer(TimerId)
{
if (TimerId == "yoyo")
{
ChatWnd.SendMessage("jeej");
//Timer interval has been met.
}
}
if (Message == "=D")
{
ChatWnd.SendMessage(":')");
}
}
(Srry, but im yet a noob with this stuff
)
This script won't work either.