What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Name colour changer - why won't it work?

Name colour changer - why won't it work?
Author: Message:
CrAzY_KeBaB
New Member
*


Posts: 6
Joined: Sep 2006
O.P. Name colour changer - why won't it work?
I want to make a script that will toggle through the first 50 colours, so it changes your name, why won't this work:

code:
int run=0;
int x=1;
int y=0;
var myname;

function OnEvent_ChatWndSendMessage(ChatWnd,Origin,Message,MessageKind)
{
    if (Message=="n#on")
    {
        run=1;
        return "";
    }
    if (Message=="n#off")
    {
        run=0
        return "";
    }
}

function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin, Message, MessageKind)
{
    if (run==1)
    {
        if (x==50)
        {
            x=1;
            y=0;
        }
        myname=Messenger.MyName;
        myname=myname.replace(y,x);
        Messenger.MyName=myname;
        x++;
        y++;
    }
}


Thanks in advance.
09-18-2006 05:59 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Name colour changer - why won't it work? - by CrAzY_KeBaB on 09-18-2006 at 05:59 PM
RE: Name colour changer - why won't it work? - by Matti on 09-18-2006 at 06:49 PM
RE: Name colour changer - why won't it work? - by CrAzY_KeBaB on 09-18-2006 at 07:12 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