This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Newb ... first script Q

Old posts that have not been replied to for several years.
Locked
Z
ZeleD
Voice
Posts: 11
Joined: Thu Nov 20, 2003 6:14 pm

Newb ... first script Q

Post by ZeleD »

putlog "Starting testscript"


bind pub - !commands showcommands

showcommands {nick uhost hand chan} {
putserv "NOTICE $nick : blablablabla"
}


This gives
Tcl error [script:load]: no value given for parameter "hand" to "showcommands"



What is wrong ?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Check the tcl-commands.doc file and see how many *arguments* dose a pub proc have.
Once the game is over, the king and the pawn go back in the same box.
Z
ZeleD
Voice
Posts: 11
Joined: Thu Nov 20, 2003 6:14 pm

Post by ZeleD »

Yeah, found it...

BUT

putlog "Starting testscript"


bind pub - !commands showcommands

showcommands {nick uhost hand chan msg} {
putserv "NOTICE $nick : You suck"
}

Doesn't change anything

still says

Tcl error [script:load]: no value given for parameter "hand" to "showcommands"
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

The script:load is another proc. Check it out.
Once the game is over, the king and the pawn go back in the same box.
Z
ZeleD
Voice
Posts: 11
Joined: Thu Nov 20, 2003 6:14 pm

Post by ZeleD »

Inserting a "proc" infront the showcommands {
solved it.

Thanxs
ZeleD wrote:Yeah, found it...

BUT

putlog "Starting testscript"


bind pub - !commands showcommands

showcommands {nick uhost hand chan msg} {
putserv "NOTICE $nick : You suck"
}

Doesn't change anything

still says

Tcl error [script:load]: no value given for parameter "hand" to "showcommands"
Locked