Sorry to bother u all again... but in this thing of code, when I say "!an", it come back "undefined"...
code:
function OnEvent_ChatWndSendMessage(Wnd,Msg)
{
if(Msg == "!pick")
    {
    var rndnumber = Math.floor(Math.random()*5);
    return "Pick a number between 0 and 4";
    }
if(Msg == "!an")
    {
    return rndnumber + "was the correct number.";
    }
}
Thanks