Felu
Veteran Member
Posts: 2223 Reputation: 72
30 / /
Joined: Apr 2006
Status: Away
|
RE: OnEvent_ChatWndSendMessage help
Your error
code: function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
var e = Message;
if(e.substring(0,4) == '!say')
{
var x = Message.splice(5);
MsgPlus.DisplayToast("",x);
}
}
Solution
code: function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
var e = Message;
if(e.substring(0,4) == '!say');
{
var x = Message.substring(5);
MsgPlus.DisplayToast("",x);
}
}
My way of doing it
code: function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
if (Message.substr(0,4) == '!say');
{
var m = Message.substr(5);
MsgPlus.DisplayToast('Test', m);
}
}
This post was edited on 08-05-2006 at 08:49 AM by Felu.
|
|