What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Making a /command

Making a /command
Author: Message:
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
37 / Male / –
Joined: May 2004
Status: Away
RE: Making a /command
quote:
Originally posted by Suma
I want to make a /command, /uit. but is't not working...
this is what I use now:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{

  if(Message == "/uit")
  {
  toast("blaat","ghehe uit");
  }
}

can somebody help me to make the /uit command?

Thanks:D

That is sort of correct, but since you don't return anything and the function is invalid, it won't work, you want:

code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{

  if(Message == "/uit")
  {
  MsgPlus.DisplayToast("blaat","ghehe uit");
  return '';
  }
}

08-10-2006 01:19 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Making a /command - by Suma on 08-10-2006 at 01:11 PM
RE: Making a /command - by markee on 08-10-2006 at 01:14 PM
RE: Making a /command - by alexp2_ad on 08-10-2006 at 01:19 PM
RE: RE: Making a /command - by Suma on 08-10-2006 at 01:24 PM
RE: Making a /command - by Veggie on 08-10-2006 at 01:28 PM
RE: Making a /command - by alexp2_ad on 08-10-2006 at 01:28 PM
RE: RE: Making a /command - by Suma on 08-10-2006 at 01:33 PM
RE: Making a /command - by J-Thread on 08-10-2006 at 01:39 PM
RE: RE: Making a /command - by Suma on 08-10-2006 at 01:43 PM
RE: Making a /command - by RaceProUK on 08-10-2006 at 03:32 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