Shoutbox

error code -2146823281 - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: error code -2146823281 (/showthread.php?tid=68609)

error code -2146823281 by sljaxon on 11-18-2006 at 07:57 PM

i am making a pm rotator script
i get an odd error code when my scripts first timer hits 1 minute

debug:

Script is starting
Script is now loaded and ready
Function called: OnEvent_Initialize
Function called: OnEvent_Timer
Error: Object expected.
       Line: 15. Code: -2146823281.
Function OnEvent_Timer returned an error. Code: -2147352567

code:

function OnEvent_Initialize(MessengerStart)
{
    MsgPlus.DisplayToast("PM-Rotate","PM-Rotate engaged.");
    Messenger.MyPersonalMessage="Hey!";
    MsgPlus.AddTimer("dorotatea",60000);
}

function OnEvent_Uninitialize(MessengerExit)
{
    MsgPlus.DisplayToast("PM-Rotate","PM-Rotate successfully disengaged.");
}

function OnEvent_Timer(TimerId)
{
    PlaySound("change.mp3");
    if(TimerId = "dorotatea")
    {
    Messenger.MyPersonalMessage="Yo!"
    MsgPlus.AddTimer("dorotateb",60000);
    }
    if(TimerId = "dorotateb")
    {
        Messenger.MyPersonalMessage=":D";
        MsgPlus.AddTimer("dorotatec",60000);
    }
    if(TimerId = "dorotatec")
    {
        Messenger.MyPersonalMessage="Are you there?";
        MsgPlus.AddTimer("dorotated",60000);
    }
    if(TimerId = "dorotated")
    {
        Messenger.MyPersonalMessage="I'm here!";
        MsgPlus.AddTimer("dorotatea",60000)
    }
}


RE: error code -2146823281 by Mnjul on 11-18-2006 at 09:05 PM

quote:
Originally posted by sljaxon
PlaySound("change.mp3");
Should be MsgPlus::PlaySound("change.mp3") ;)
RE: error code -2146823281 by sljaxon on 11-19-2006 at 01:58 PM

Thanks!

__________
Sam