Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ VBscript ➜ Wrong Number of Arguments?

Wrong Number of Arguments?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by MattMc   USA  (54 posts)  Bio
Date Mon 10 Nov 2003 12:34 AM (UTC)
Message
<timer script="TimeCheck" enabled="y" hour="20" minute="25" at_time="y" >
<send></send>
</timer>

and

sub TimeCheck (sName, sLine, strwildcards)
world.send "wait"
world.send "time"
end sub

Just really ignore the point of the script, I have a higher cause somewhere else :D The problem is that when the timer executes, I get a Vbasic error saying I have the wrong number of arguments in TimeCheck. Below is my retyping of the error as I read it:

Mushclient
Wrong number of arguments for script subroutine "TimeCheck" when processing timer ""
We expected your subroutine to have 1 argument.


How can I get rid of this?
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Mon 10 Nov 2003 01:01 AM (UTC)
Message
Read:
http://www.gammon.com.au/scripts/doc.php?dialog=IDD_EDIT_TIMER

Notably, the script part towards the bottom.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by MattMc   USA  (54 posts)  Bio
Date Reply #2 on Mon 10 Nov 2003 01:06 AM (UTC)
Message
Wowzers, thanks for quick response!

The best part of the quick response is that it worked too :D! Thanks!


Matt
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


14,614 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.