What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » AddTimer makes msn crash

AddTimer makes msn crash
Author: Message:
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: AddTimer makes msn crash
quote:
Originally posted by Dauntless
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!

If you read your code you'd understand that because you don't do that, it causes your whole code to fail. Also doing that won't make the command show, as it returns the message if it is counting.

code:
var counter = 6;
var curWnd;

function OnEvent_ChatWndSendMessage(chatWnd, msg)
{
    if(msg == "/countdown") {
        curWnd = chatWnd;
        MsgPlus.AddTimer("commandCountDown", 1000);
        return "";
    }
}

function onEvent_Timer()
{
    counter--;
    Debug.trace("counter = "+counter);
    if(counter == 0)
        curWnd.sendMessage("Happy New Year!");
    else
    {
        curWnd.sendMessage(counter);
        MsgPlus.AddTimer("commandCountDown", 1000);
    }
}
Works, and is simplified.

This post was edited on 08-10-2006 at 05:36 AM by Silentdragon.
08-10-2006 03:17 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
AddTimer makes msn crash - by Dauntless on 08-10-2006 at 12:08 AM
RE: AddTimer makes msn crash - by Silentdragon on 08-10-2006 at 12:36 AM
RE: RE: AddTimer makes msn crash - by Dauntless on 08-10-2006 at 12:49 AM
RE: AddTimer makes msn crash - by cloudhunter on 08-10-2006 at 01:09 AM
RE: AddTimer makes msn crash - by Silentdragon on 08-10-2006 at 03:17 AM
RE: RE: AddTimer makes msn crash - by Dauntless on 08-10-2006 at 07:45 AM
RE: AddTimer makes msn crash - by Silentdragon on 08-10-2006 at 07:51 AM
RE: AddTimer makes msn crash - by RaceProUK on 08-10-2006 at 08:43 AM
RE: RE: AddTimer makes msn crash - by Dauntless on 08-10-2006 at 08:49 AM
RE: AddTimer makes msn crash - by -dt- on 08-10-2006 at 08:56 AM
RE: AddTimer makes msn crash - by Dauntless on 08-10-2006 at 08:57 AM
RE: AddTimer makes msn crash - by -dt- on 08-10-2006 at 09:05 AM
RE: RE: AddTimer makes msn crash - by Dauntless on 08-10-2006 at 09:10 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On