Shoutbox

Need help with name changing script - 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: Need help with name changing script (/showthread.php?tid=85840)

Need help with name changing script by DarkCloud on 09-08-2008 at 01:10 PM

I tried to use the name changing script to automaticly change names.

But after I had added as many names as I wanted and tried to activate the script, it said that there are some errors in it. Can somebody tell me what's wrong?

MsgPlus.AddTimer('T1', 11000);


var i=0;

    function OnEvent_Timer(TimeId)
    {
        if (TimeId == 'T1')
        {
            i=i+1;
                           
            if (i == 1) Messenger.MyName='name - [ Buy name, ]';
            if (i == 2) Messenger.MyName='name - [ Use name, ]';
            if (i == 3) Messenger.MyName='name - [ break name, ]';
            if (i == 4) Messenger.MyName='name - [ fix name, ]';
            if (i == 5) Messenger.MyName='name - [ trash name, ]';
            if (i == 6) Messenger.MyName='name - [ change name, ]';
            if (i == 7) Messenger.MyName='name - [ upgrade name, ]';
            if (i == 8) Messenger.MyName='name - [ change name, ]';
            if (i == 9) Messenger.MyName='name - [ pawn name, ]';
            if (i == 10) Messenger.MyName='name - [ zoom name, ]';
            if (i == 11) Messenger.MyName='name - [ press name, ]';
            if (i == 12) Messenger.MyName='name - [ charge name, ]';
            if (i == 13) Messenger.MyName='name - [ pawn name, ]
            if (i == 14) Messenger.MyName='name - [ zoom name, ]';
            if (i == 15) Messenger.MyName='name - [ press name, ]';
            if (i == 16) Messenger.Myname='name - [ snap name, ]';
            if (i == 17) Messenger.Myname='name - [ work name, ]';
            if (i == 18) Messenger.Myname='name - [ erase name, ]';
            if (i == 19) Messenger.Myname='name - [ wrnamee name, ]';
            if (i == 20) Messenger.Myname='name - [ get name, ]';
            if (i == 21) Messenger.Myname='name - [ paste name, ]'; 
            if (i == 22) Messenger.Myname='name - [ save name, ]'; 
            if (i == 23) Messenger.Myname='name - [ load name, ]'; 
            if (i == 24) Messenger.Myname='name - [ check name, ]'; 
            if (i == 25) Messenger.Myname='name - [ rewrnamee name, ]'; 
            if (i == 26) Messenger.Myname='name - [ plug name, ]'; 
            if (i == 27) Messenger.Myname='name - [ play name, ]'; 
            if (i == 29) Messenger.Myname='name - [ burn name, ]';
            if (i == 30) Messenger.Myname='name - [ rip name, ]';
            if (i == 31) Messenger.Myname='name - [ drag and drop name, ]';
            if (i == 32) Messenger.Myname='name - [ zip - unzip name, ]';
            if (i == 33) Messenger.Myname='name - [ lock name, ]';
            if (i == 34) Messenger.Myname='name - [ fill name, ]';
            if (i == 35) Messenger.Myname='name - [ curl name, ]';
            if (i == 36) Messenger.Myname='name - [ find name, ]';
            if (i == 37) Messenger.Myname='name - [ view name, ]';
            if (i == 38) Messenger.Myname='name - [ curl name, ]';
            if (i == 39) Messenger.Myname='name - [ jam - unlock name, ]';
            if (i == 40) Messenger.Myname='name - [ surf name, ]';
            if (i == 41) Messenger.Myname='name - [ scroll name, ]';
            if (i == 42) Messenger.Myname='name - [ pose name, ]';
            if (i == 43) Messenger.Myname='name - [ click name, ]';
            if (i == 44) Messenger.Myname='name - [ cross name, ]';
            if (i == 45) Messenger.Myname='name - [ crack name, ]';
            if (i == 46) Messenger.Myname='name - [ twnamech - update name, ]';
            if (i == 47) Messenger.Myname='name - [ name name, ]';
            if (i == 48) Messenger.Myname='name - [ read name, ]';
            if (i == 49) Messenger.Myname='name - [ tune name, ]';
            if (i == 50) Messenger.Myname='name - [ print name, ]';   
            if (i == 52) Messenger.Myname='name - [ scan name, ]';
            if (i == 53) Messenger.Myname='name - [ send name, ]';
            if (i == 54) Messenger.Myname='name - [ fax - rename name, ]';
            if (i == 55) Messenger.Myname='name - [ touch name, ]';
            if (i == 56) Messenger.Myname='name - [ bring name, ]';
            if (i == 57) Messenger.Myname='name - [ obey name, ]';
            if (i == 58) Messenger.Myname='name - [ watch name, ]';
            if (i == 59) Messenger.Myname='name - [ turn name, ]';
            if (i == 60) Messenger.Myname='name - [ leave name, ]';
            if (i == 61) Messenger.Myname='name - [ stop - format name. ]';
            if (i == 62) Messenger.Myname='name - [ name, ]';
            if (i == 63) Messenger.Myname='name - [ name, ]';
            if (i == 64) Messenger.Myname='name - [ name, ]';
            if (i == 65) Messenger.Myname='name - [ name. ]';                   
           
            MsgPlus.AddTimer('T1', 11000);

if (i == 65) i=0;
        }
    }


The "name's" are replacement for some of the actual words, just for the privacy.


RE: Need help with name changing script by Spunky on 09-08-2008 at 02:38 PM

code:
            if (i == 13) Messenger.MyName='name - [ pawn name, ]


is missing the ending quotation mark. Unterminated String constant means that somewhere in your script, a string has not been closed (like that above).
RE: Need help with name changing script by DarkCloud on 09-08-2008 at 02:47 PM

Thank you very much, it helped.