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

Old posts that have not been replied to for several years.
Locked
R
RaDoM
Voice
Posts: 17
Joined: Mon Mar 10, 2003 2:32 pm
Location: uNd3rGr0uNd C1Ty

tcl error

Post by RaDoM »

hi,

i am doing a tcl but has an error:

Code: Select all

set script {
"\002This is a test only\002"
}
bind pub o !go pub:t
proc pub:t {nick uhost hand chan text} {
global script
foreach line $script {puthelp "PRIVMSG $chan :$line" }
what's happen?

i want when i type in chan !go, bot reply me the set

thanks in advance
.:: RaDoM ::.

The future is nearby!
R
RaDoM
Voice
Posts: 17
Joined: Mon Mar 10, 2003 2:32 pm
Location: uNd3rGr0uNd C1Ty

Post by RaDoM »

Which is the mistake?
.:: RaDoM ::.

The future is nearby!
W
Weirdo
Master
Posts: 265
Joined: Sat Apr 27, 2002 8:00 pm
Location: Manchester, England

Post by Weirdo »

What is the error :P
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

First of all...why is your string in a list? Are you going to have multiple strings in there or did you just toss up some random code?

Check your error messages...the error saying that the variable "line" doesn't exist should give you a clue.
Locked