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 on proc

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


Joined: 06 Nov 2006
Posts: 255

PostPosted: Sat Nov 03, 2007 7:57 pm    Post subject: wrong args on proc Reply with quote

Code:
proc g_nexts { nick uhost handle channel } {
  global g_active g_clearqueue1 g_serverholder g_shutupchan g_q1 clr g_q2 g_q3 g_q4 g_q5 g_q6 g_q7 g_q8 g_pickupchan g_privategatherchannel
if { $g_active == 1 } {
putserv "PRIVMSG $g_privategatherchannel :14,1\[7«0 1.: $g_q1 2.: $g_q2 3.: $g_q3 4.: $g_q4 5.: $g_q5 6.: $g_q6 7.: $g_q7 8.: $g_q8 7»14]"
} else {
g_clearqueue1
}
}


g_clearqueue1 is other proc

when this proc g_nexts runs i saw in dcc chat
Code:
wrong # args: should be "g_nexts nick uhost handle channel arg"
when i overwrite with that problem still exist etc..

anyone can help me?

thnks
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Sun Nov 04, 2007 12:11 am    Post subject: Reply with quote

the error is telling you what it needs. The procedure g_nexts is expecting 5 arguments, not 4, as in
Code:
proc g_nexts {nick host handle channel text} {

_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Sun Nov 04, 2007 4:49 am    Post subject: Reply with quote

now the error in dcc chat is :

> [02:46] wrong # args: should be "g_nexts nick host handle channel text"

:/ what i must put in arg?


thnx
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Nov 04, 2007 1:46 pm    Post subject: Reply with quote

Depends on the bind..How bout showing us? Or better yet, read the tcl-commands.doc that comes with eggdrop and learn the syntax for the bind yourself, it shouldn't be that hard to do.. Once you know how many parameters that particular bind needs, then you can fix your script.
Back to top
View user's profile Send private message
DragnLord
Owner


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

PostPosted: Sun Nov 04, 2007 2:15 pm    Post subject: Reply with quote

'proc g_nexts' is not being passed enough arguments, post the entire script so you can actually get help with it
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Mon Nov 05, 2007 4:29 pm    Post subject: Reply with quote

Fixed ty Smile
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