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 

"wrong # args" ?!

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


Joined: 04 Jun 2006
Posts: 22

PostPosted: Fri Jun 16, 2006 1:39 am    Post subject: "wrong # args" ?! Reply with quote

Code:
proc msg:invite { nick uhost hand arg } {
global mychan
 if { $nick == "MyNick" } {       
        if { $arg == "" } {               
               putserv "NOTiCE $nick No Chan!! \002!invite <#Chan>\002"
               }               
        } else {
               foreach nick [chanlist $arg] {
               putserv "invite $nick $mychan"     
               }         
        }       
 }


Tcl error [msg:invite]: wrong # args: should be "msg:invite nick uhost handle chan arg"


Whats wrong? Sad


Last edited by Access on Fri Jun 16, 2006 1:49 am; edited 1 time in total
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Jun 16, 2006 1:44 am    Post subject: Reply with quote

the invocation syntax of [msg:invite]
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri Jun 16, 2006 2:37 am    Post subject: Reply with quote

I'll make this really easy and translate:
Code:
proc msg:invite { nick uhost hand arg }
should be
Code:
proc msg:invite { nick uhost hand chan arg }
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Fri Jun 16, 2006 4:59 am    Post subject: Reply with quote

I have rather the feeling, there is another proc called "msg:invite" which overwrites this one! Because if the trigger would be public, it would have complained about too less arguments (should be 4), but the proc shown has only 4, so we assume it it binded really to msg, but than the argument number would be correct, so there must be a msg:invite intented to be bound to pub.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
Access
Voice


Joined: 04 Jun 2006
Posts: 22

PostPosted: Fri Jun 16, 2006 7:44 am    Post subject: Reply with quote

nope, just another proc named "pub:invite" but now i changed procname but didnt work too!
sry for my english, im german!
Code:
proc msg:inv { nick uhost hand chan arg } {
global mychan
        if { $arg == "" } {           
               putserv "NOTiCE $nick Kein Channel angegeben! \002!invite <#Chan>\002"             
        } else {
               foreach nick [chanlist $arg] {
               putserv "invite $nick $mychan"     
               }         
        }
}
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Fri Jun 16, 2006 8:57 am    Post subject: Reply with quote

what does your error mesasge look now like? I am still confident I was right Very Happy.

@Access: Dein Englisch ist nicht das Problem Smile.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
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