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.
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