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
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 '';
}
}