What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Whats wrong with this?

Pages: (3): « First « 1 2 [ 3 ] Last »
Whats wrong with this?
Author: Message:
cloudhunter
Senior Member
****


Posts: 536
Reputation: 18
37 / – / –
Joined: Dec 2005
RE: Whats wrong with this?
I was aware of that ;) I actually fixed it in my copy of the code. But here is the little fix that is needed:
code:
var rndnumber;
function OnEvent_ChatWndSendMessage(Wnd,Msg)
{
if(Msg == "!pick")
{
rndnumber = Math.floor(Math.random()*26);
return "Pick a number between 0 and 25";
}
}


function OnEvent_ChatWndReceiveMessage(Wnd,Sender,Message,MsgKind)
{
if(Message == rndnumber)
{
Command_Win(Wnd);
}
}

function Command_Win(Wnd)
{
Wnd.SendMessage(rndnumber + " was the correct number! ");
rndnumber = null;
}

Cloudy

This post was edited on 07-23-2006 at 06:07 PM by cloudhunter.
[Image: cloudy.jpg]
Sig by pirateok/marisaok/marisa ;)
quote:
Originally posted by Moulin Rouge
The greatest thing you'll ever learn, is just to love and be loved in return

6721 days, 15 hours, 45 minutes, 23 seconds ago
07-23-2006 06:06 PM
Profile E-Mail PM Find Quote Report
Pages: (3): « First « 1 2 [ 3 ] Last »
« Next Oldest Return to Top Next Newest »


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