| View previous topic :: View next topic |
| Author |
Message |
ultralord Master

Joined: 06 Nov 2006 Posts: 255
|
Posted: Sat Nov 03, 2007 7:57 pm Post subject: wrong args on proc |
|
|
| 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 |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Sun Nov 04, 2007 12:11 am Post subject: |
|
|
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} { |
_________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
ultralord Master

Joined: 06 Nov 2006 Posts: 255
|
Posted: Sun Nov 04, 2007 4:49 am Post subject: |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Nov 04, 2007 1:46 pm Post subject: |
|
|
| 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 |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Sun Nov 04, 2007 2:15 pm Post subject: |
|
|
| 'proc g_nexts' is not being passed enough arguments, post the entire script so you can actually get help with it |
|
| Back to top |
|
 |
ultralord Master

Joined: 06 Nov 2006 Posts: 255
|
Posted: Mon Nov 05, 2007 4:29 pm Post subject: |
|
|
Fixed ty  |
|
| Back to top |
|
 |
|