Wrong Number of Arguments?

Posted by MattMc on Mon 10 Nov 2003 12:34 AM — 3 posts, 16,253 views.

USA #0
<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?
USA #1
Read:
http://www.gammon.com.au/scripts/doc.php?dialog=IDD_EDIT_TIMER

Notably, the script part towards the bottom.
USA #2
Wowzers, thanks for quick response!

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


Matt