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 

[SOLVED]TLC error

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


Joined: 04 Jul 2009
Posts: 22

PostPosted: Sun Jul 12, 2009 9:04 am    Post subject: [SOLVED]TLC error Reply with quote

I changed a IMDB script, to get the Director
http://pastie.org/543050

But he returns an error 13:58 wareztuga • [12:56] Tcl error [::imdb::public]: invalid command name "Francis Ford Coppola"

SOmeone can help me?


Last edited by tigrato on Sun Jul 12, 2009 5:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sun Jul 12, 2009 2:14 pm    Post subject: Reply with quote

Code:
return [list [string trim $name] $year [join $genre "/"] [string trim $tagline] [string trim $plot "\r\n\t| "] $rating $votes [string trim $runtime] [join $language "/"] [string trim $top]; [string trim $director " "]];

Perplexa has this unusual habit of ending each of his lines with a semicolon. This is required in languages such as pascal or c. But for tcl, this is far from a requirement. Notice above where you've left one of these semicolons hanging in the list?

Let me show you an example of what happens when you do this:
Quote:
<speechles> .tcl set b [list this that the-otherthing; [string trim "recreated-problem"]]
<sp33chy> Tcl error: invalid command name "recreated-problem"


So the easy way to fix it, is to put that semicolon at the very end of the line. Or, simply get rid of it. It's not a requirement. To fix it simply copy the line exactly the way it is below.

Code:
return [list [string trim $name] $year [join $genre "/"] [string trim $tagline] [string trim $plot "\r\n\t| "] $rating $votes [string trim $runtime] [join $language "/"] [string trim $top] [string trim $director]];

_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
tigrato
Voice


Joined: 04 Jul 2009
Posts: 22

PostPosted: Sun Jul 12, 2009 2:49 pm    Post subject: Reply with quote

Solved, thanks i not see the ; sorry, and thanks
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