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

Whats wrong with this?
Author: Message:
Aeryn
Full Member
***

Avatar

Posts: 230
Reputation: 28
– / Female / –
Joined: Jun 2005
Status: Away
RE: Whats wrong with this?
It's easier to see bracket mismatches if you put each bracket on a line by itself and indent your code.


code:
function OnEvent_ChatWndReceiveMessage(Wnd,Sender,Msg,MsgKind)
{
  if(Msg == rndnumber)
  {
    return rndnumber + "was the correct number.";
  }


as you can see there's a missing bracket for the function header.

so it should be like this:

code:
function OnEvent_ChatWndReceiveMessage(Wnd,Sender,Msg,MsgKind)
{
  if(Msg == rndnumber)
  {
    return rndnumber + "was the correct number.";
  }
}


Edit: actually it's the exact same thing with the first section of your code too:

code:
function OnEvent_ChatWndSendMessage(Wnd,Msg) {
if(Msg == "!picknum") {
return Begin();
}

there should be one more bracket in the end again.

This post was edited on 07-22-2006 at 08:52 PM by Aeryn.
07-22-2006 08:40 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Whats wrong with this? - by Hengy on 07-22-2006 at 08:00 PM
RE: Whats wrong with this? - by Mnjul on 07-22-2006 at 08:07 PM
RE: Whats wrong with this? - by Weyzza on 07-22-2006 at 08:07 PM
RE: Whats wrong with this? - by Hengy on 07-22-2006 at 08:24 PM
RE: Whats wrong with this? - by Weyzza on 07-22-2006 at 08:27 PM
RE: Whats wrong with this? - by Hengy on 07-22-2006 at 08:33 PM
RE: Whats wrong with this? - by Aeryn on 07-22-2006 at 08:40 PM
RE: Whats wrong with this? - by Hengy on 07-22-2006 at 08:53 PM
RE: Whats wrong with this? - by Aeryn on 07-22-2006 at 09:00 PM
RE: Whats wrong with this? - by Hengy on 07-22-2006 at 10:33 PM
RE: Whats wrong with this? - by ShawnZ on 07-22-2006 at 10:43 PM
RE: Whats wrong with this? - by Hengy on 07-22-2006 at 10:50 PM
RE: Whats wrong with this? - by ShawnZ on 07-22-2006 at 10:51 PM
RE: Whats wrong with this? - by Hengy on 07-22-2006 at 10:53 PM
RE: Whats wrong with this? - by cloudhunter on 07-23-2006 at 12:10 AM
RE: Whats wrong with this? - by Hengy on 07-23-2006 at 01:24 AM
RE: RE: Whats wrong with this? - by mickael9 on 07-23-2006 at 01:45 AM
RE: Whats wrong with this? - by cloudhunter on 07-23-2006 at 01:54 AM
RE: Whats wrong with this? - by Hengy on 07-23-2006 at 02:16 PM
RE: RE: Whats wrong with this? - by mickael9 on 07-23-2006 at 06:02 PM
RE: Whats wrong with this? - by cloudhunter on 07-23-2006 at 06:06 PM


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