egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with error [SOLVED]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
vince164
Voice


Joined: 23 May 2006
Posts: 7

PostPosted: Tue May 23, 2006 9:45 pm    Post subject: Help with error [SOLVED] Reply with quote

hi i get this error
Tcl error [pub:help]: wrong # args: should be "pub:help nick chan"
what dose this mean?

here is the code

Code:
bind pub - !remove pub:remove
bind pub - !help pub:help
proc pub:remove {nick chan} {
  if { $chan == "#vhost" } {
    putquick "PRIVMSG hostserv :DEL $nick"
    putquick "PRIVMSG $chan :$nick 4your vhost has been removed, 8Thank you for stoping by #vhost have a good day"
    return
  }
}
proc pub:help {nick chan} {
  if { $chan == "#vhost" } {    putquick "PRIVMSG $chan :!Remove - will remove your vhost"
    putquick "PRIVMSG $chan :!vhost hostname - will give you the vhost specified"
    putquick "PRIVMSG $chan :would set your vhost to: I.got.my.own.vhost"
    putquick "PRIVMSG $chan :The choosen vhost is permanent, only when your nick is registered, and will be enabled on identification with nickserv"
    return
  }
}
putlog "Loaded vhost script"


Last edited by vince164 on Tue May 23, 2006 10:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue May 23, 2006 9:58 pm    Post subject: Reply with quote

Change:
Code:
proc pub:help {nick chan}

to
Code:
proc pub:help {nick uhost hand chan}


Quote:
proc name args body

Args specifies the formal arguments to the procedure. It consists of a list, possibly empty, each of whose elements specifies one argument. Each argument specifier is also a list with either one or two fields. If there is only a single field in the specifier then it is the name of the argument; if there are two fields, then the first is the argument name and the second is its default value.

Further details can be obtained from the Built-In Commands - proc manual page.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
vince164
Voice


Joined: 23 May 2006
Posts: 7

PostPosted: Tue May 23, 2006 10:06 pm    Post subject: Reply with quote

now i get this error

Tcl error [pub:help]: wrong # args: should be "pub:help nick uhost hand chan"
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue May 23, 2006 10:15 pm    Post subject: Reply with quote

Ok.. try this:
Code:
proc pub:help {nick uhost hand chan text}

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
vince164
Voice


Joined: 23 May 2006
Posts: 7

PostPosted: Tue May 23, 2006 10:23 pm    Post subject: Reply with quote

thanks that workes!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber