What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » script command error - "Command Requiers Parameter"

script command error - "Command Requiers Parameter"
Author: Message:
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: script command error - "Command Requiers Parameter"
I stand corrected, this error message does exist in plus :O specifically for the /me command. I tried it with /all.

Working code *should* be:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
    var mCommand = new Array();
    mCommand = Message.split(' ');
   
    if (mCommand[0] == '/act'){
        Debug.Trace("Recognized");
        var nick = Messenger.MyName;
        var msg = "/me ";
        Messenger.MyName = mCommand[1];
        for (i = 2; i < mCommand.Length; i++) {
            msg += mCommand[i];
        }
        MsgPlus.AddTimer("restoreNick", 100);
        return msg;
    } else { Debug.Trace("Not Recognized"); }
}

edit: didn't see matty had posted the correction as well..nevermind :P

This post was edited on 10-23-2006 at 01:32 AM by deAd.
10-23-2006 01:31 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 12:17 AM
RE: script command error - "Command Requiers Parameter" - by deAd on 10-23-2006 at 12:24 AM
RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 12:27 AM
RE: script command error - "Command Requiers Parameter" - by matty on 10-23-2006 at 12:47 AM
RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 12:53 AM
RE: script command error - "Command Requiers Parameter" - by matty on 10-23-2006 at 12:57 AM
RE: script command error - "Command Requiers Parameter" - by deAd on 10-23-2006 at 01:31 AM
RE: script command error - "Command Requiers Parameter" - by CookieRevised on 10-23-2006 at 10:59 AM
RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 08:30 PM
RE: script command error - "Command Requiers Parameter" - by foaly on 10-23-2006 at 08:35 PM
RE: script command error - "Command Requiers Parameter" - by CookieRevised on 10-23-2006 at 08:36 PM
RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 09:00 PM
RE: RE: script command error - "Command Requiers Parameter" - by CookieRevised on 10-23-2006 at 09:24 PM
RE: RE: RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 09:26 PM
RE: script command error - "Command Requiers Parameter" - by CookieRevised on 10-23-2006 at 09:14 PM
RE: RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 09:21 PM


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