Shoutbox

Script Command Problem [DETAILS INSIDE] - 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: Script Command Problem [DETAILS INSIDE] (/showthread.php?tid=92969)

Script Command Problem [DETAILS INSIDE] by YESterday on 11-20-2009 at 05:49 PM

I'm trying to make some commands for a test script (I'm learning, go figure =P) I can get the commands to work, I even made a ScriptInfo.xml file, with the commands and script info. But it displays the error when it's not a command. ('The command you entered was not recognised')

I used the currency calculator made by someone else and no error popped up.

Help please.


RE: Script Command Problem [DETAILS INSIDE] by Spunky on 11-20-2009 at 06:00 PM

Make sure you put

code:
return "";
at the end of your ChatWndSendMessage function. You must always return something. In this case, as you don't want any text to be sent, return a blank string
RE: RE: Script Command Problem [DETAILS INSIDE] by YESterday on 11-20-2009 at 06:05 PM

quote:
Originally posted by Spunky
Make sure you put
code:
return "";
at the end of your ChatWndSendMessage function. You must always return something. In this case, as you don't want any text to be sent, return a blank string

Works now, thanks :D
Gosh I gotta learn more.. thats what the documentation's for *reads*