What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Problem in my script ... ( second problem ^^ )

Problem in my script ... ( second problem ^^ )
Author: Message:
Rekinmalad
New Member
*


Posts: 12
Joined: Aug 2006
O.P. RE: RE: Problem in my script ... ( second problem ^^ )
quote:
Originally posted by Silentdragon
I'm assuming you use a space between the second part of the command so, change the substrings for those functions by 1 character or you will end up getting the space with it.

ie
code:
Message.substr(4,2) == "cs"
should be
code:
Message.substr(5,2) == "cs"


and for "/tphelp jeu" ?

And for this:
code:
if(Message.substr(0,8) == "/jeutous"){
        if(Message.substr(9,2) == "cs"){
               notify("Bonne boucherie :)");
               Messenger.MyStatus = 4;
               Debug.Trace("Statut changé en 'busy' (4)");
               return 'Désolé, je charcute des gens a CS :D';
        }
        else if(Message.substr(9,2) == "fp"){
               notify("Bon frutijeux :)");
               Messenger.MyStatus = 4;
               Debug.Trace("Statut changé en 'busy' (4)");
               return 'Désolé, je suis occupé sur Frutiparc ! :D';
        }
        else if(Message.substr(9,5) == "dofus"){
               notify("Bonnes quetes ! Et faites attention aux bouftous ! :)");
               Messenger.MyStatus = 4;
               Debug.Trace("Statut changé en 'busy' (4)");
               return 'Désolé, je suis en train de jouer a Dofus !';
        }
        else {
            notify("Commande non reconnue ...");
        }
    }
When i send "/jeutous dofus", i have: a notify "Commande non reconnue" and a the normal function.

Why ?
08-31-2006 04:23 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-29-2006 at 09:38 AM
RE: Change user status - by RaceProUK on 08-29-2006 at 10:39 AM
RE: Change user status - by Rekinmalad on 08-29-2006 at 03:10 PM
RE: Problem in my script ... ( second problem ^^ ) - by Felu on 08-29-2006 at 03:44 PM
RE: Problem in my script ... ( second problem ^^ ) - by Reload2 on 08-29-2006 at 04:13 PM
RE: Problem in my script ... ( second problem ^^ ) - by RaceProUK on 08-30-2006 at 10:05 AM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-30-2006 at 08:45 PM
RE: Problem in my script ... ( second problem ^^ ) - by boston on 08-30-2006 at 08:55 PM
RE: Problem in my script ... ( second problem ^^ ) - by matty on 08-30-2006 at 09:02 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-30-2006 at 10:25 PM
RE: Problem in my script ... ( second problem ^^ ) - by Spunky on 08-30-2006 at 10:37 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 11:35 AM
RE: Problem in my script ... ( second problem ^^ ) - by Silentdragon on 08-31-2006 at 02:04 PM
RE: RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 04:23 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 04:33 PM
RE: Problem in my script ... ( second problem ^^ ) - by Silentdragon on 08-31-2006 at 04:44 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 04:58 PM
RE: Problem in my script ... ( second problem ^^ ) - by Felu on 08-31-2006 at 05:03 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 05:15 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 09:20 PM
RE: Problem in my script ... ( second problem ^^ ) - by Silentdragon on 08-31-2006 at 09:23 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 10:13 PM
RE: Problem in my script ... ( second problem ^^ ) - by Spunky on 08-31-2006 at 10:15 PM
RE: Problem in my script ... ( second problem ^^ ) - by Rekinmalad on 08-31-2006 at 10:27 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