| View previous topic :: View next topic |
| Author |
Message |
tigrato Voice
Joined: 04 Jul 2009 Posts: 22
|
Posted: Sun Jul 12, 2009 9:04 am Post subject: [SOLVED]TLC error |
|
|
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 |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Jul 12, 2009 2:14 pm Post subject: |
|
|
| 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 |
|
 |
tigrato Voice
Joined: 04 Jul 2009 Posts: 22
|
Posted: Sun Jul 12, 2009 2:49 pm Post subject: |
|
|
| Solved, thanks i not see the ; sorry, and thanks |
|
| Back to top |
|
 |
|