What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » what is wrong?

Pages: (2): « First « 1 [ 2 ] Last »
what is wrong?
Author: Message:
89rafa
Junior Member
**


Posts: 16
Joined: Sep 2007
O.P. RE: what is wrong?
portuguese... and a little bit of spanish...

i done the same thing to nick change.. and works!!

god bless copy-paste =/
09-01-2007 11:42 PM
Profile E-Mail PM Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
21 / Other / Flag
Joined: Jul 2003
RE: what is wrong?
Perhaps a google search will help you :)

http://www.google.co.uk/search?q=javascript+tutorial+portuguese

Good luck :)
09-01-2007 11:55 PM
Profile PM Web Find Quote Report
89rafa
Junior Member
**


Posts: 16
Joined: Sep 2007
O.P. RE: what is wrong?
thanks...

now the problem is:
ex

function OnEvent_ChatWndSendMessage(ChatWnd,Message)
    {
    if (Message.toLowerCase() == "/rafa") // prevenir erros. (ex. !RaFa)
        {
        var text="i'm rafa"
        ChatWnd.SendMessage(text);
        }
    }
   
//outro

function OnGetScriptCommands()
{
    var ScriptCommands = "<ScriptCommands>";
    ScriptCommands += "<Command>";
    ScriptCommands += "<Name>rafa</Name>";
    ScriptCommands += "<Description>tell who i am</Description>";
    ScriptCommands += "</Command>";
    ScriptCommands += "</ScriptCommands>";
    return ScriptCommands;
}


ok... it works...
but gives me a anoying beep song and a erros message that says something like that:
if you want to type /rafa try typing //rafa

edit: mistakes

big progress xD

This post was edited on 09-02-2007 at 04:46 PM by 89rafa.
09-02-2007 04:40 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: what is wrong?
After the line ChatWnd.SendMessage(text);

add the following

code:
return '';

This post was edited on 09-02-2007 at 04:47 PM by matty.
09-02-2007 04:47 PM
Profile E-Mail PM Find Quote Report
89rafa
Junior Member
**


Posts: 16
Joined: Sep 2007
O.P. RE: RE: what is wrong?
quote:
Originally posted by matty
After the line ChatWnd.SendMessage(text);

add the following

code:
return '';


can you explain what that does? i'm a begginer...
09-02-2007 04:50 PM
Profile E-Mail PM Find Quote Report
effection
Full Member
***

Destroy The Runner

Posts: 135
Reputation: 4
– / Male / Flag
Joined: Sep 2006
RE: what is wrong?
it means the function returns no message(an empty string) so it wont be displayed or try to be used as a command
09-02-2007 05:10 PM
Profile E-Mail PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: what is wrong?
quote:
Originally posted by 89rafa
can you explain what that does? i'm a begginer...

it returns the text "" (an empty string) to whatever called it, as a result. plus! needs you to return something, otherwise it assumes that the command doesn't exist
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
09-02-2007 05:13 PM
Profile PM Web Find Quote Report
89rafa
Junior Member
**


Posts: 16
Joined: Sep 2007
O.P. RE: what is wrong?
ok. thanks.
i'm trying to do one thing.. if i can't i will come here asking for help...
but first i will try do it by my self....  =D
09-02-2007 05:17 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: what is wrong?
quote:
Originally posted by ShawnZ
plus! needs you to return something, otherwise it assumes that the command doesn't exist
Correction, Plus! requires you to return something to the function or else it will try and parse the command. And because the command doesn't exist you receive the error.

This post was edited on 09-02-2007 at 05:26 PM by matty.
09-02-2007 05:23 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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