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.

Tcl error [ctcr_ping]: wrong # args: should be "lind

Old posts that have not been replied to for several years.
Locked
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Tcl error [ctcr_ping]: wrong # args: should be "lind

Post by Sir_Fz »

I used this script before with no errors. today i deleted it to use another script. but I reconsidered the change and redownloaded the file again.
but now it shows this error:
Tcl error [ctcr_ping]: wrong # args: should be "lindex list index"
here's the ctcr_ping proc :

Code: Select all

proc ctcr_ping {nick uhost hand dest keyword arg} {
  if {([lindex $arg 0] == "CHECK") && ([validnum [set time [lindex $arg 1]]])} { puthelp "PRIVMSG [lindex
$arg 2] :\[$nick PING reply\]: [expr abs([clock clicks] - $time) / 1000000.0] seconds" }
}
any idea how to fix it plz ?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Very simple mistake caused by your editor.

The line has wrapped. You need to make sure it is on one line, whereas now, it is on two.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Same stuff happend to me due the "pico" thing.. screw it! upload the files, don't paste 'em there.
Once the game is over, the king and the pawn go back in the same box.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

and I thought the file changed at the website :P
thanx :)
Locked