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.

missing brace

Old posts that have not been replied to for several years.
Locked
A
Amstel76

missing brace

Post by Amstel76 »

I got a tlc script to generate html from trivia scores. I made some changes but there is something wrong and i can't find it.

this is the error:
Tcl error in file 'eggdrop.conf':
missing close-brace
while executing
"proc tghtml {} {
global tgchan botnick tghtmlfile tghtmlrefresh server tgscoresbyname tgranksbyname global tgscorestotal tgranksbyname tgrealnames t..."
(file "trivia/trivia.tcl" line 864)
invoked from within
"source trivia/trivia.tcl"
(file "eggdrop.conf" line 218)
* CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
The script is here

Can somebody help me out?
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Try adding an } to the bottom ? :\
A
Amstel76

Post by Amstel76 »

MeTroiD wrote:Try adding an } to the bottom ? :\
Correct me if i'am wrong, but it's there ;)
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

What i meant was, Add Another.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

For each { (opening brace) there must be a { (closing brace) in a procedure. Check the total of both opening and closing braces. If they are equal then there should be no problem.

If they are not equal (then the procedure is not closed). Make them equal by adding the missing one(s) in the appropriate places of the procedure (mostly in the end).
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

that goes for braces within comments aswell... or within quotes..
take a look at this line and you might spot the error ;)

Code: Select all

puts $_file "  body,td{body,td{font-family:verdana,helvetica,arial;font-size:13px; color:#ffffff;}"
Elen sila lúmenn' omentielvo
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

shouldn't he add \ infront of
[] & {} & () & "
maybe just misunderstood ..
XplaiN but think of me as stupid
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Na... the error said 'missing close brace'. :wink:
Meaning a } :mrgreen: :mrgreen: :mrgreen: heh... nice one 8)
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

awyeah wrote:Na... the error said 'missing close brace'. :wink:
Meaning a } :mrgreen: :mrgreen: :mrgreen: heh... nice one 8)
It can also be what Ofloo said...If you make in script with special chars (like is PRIVMSG ]Kami[ etc... and if you don't put \ infront of special chars, you'll get same error...} isn't only close bracket......
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Maybe, yeah but I'm not sure though. Probobaly because it has never occured to me. It can happen I guess, after all ] [ is a brace as well :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

have a look here.
Once the game is over, the king and the pawn go back in the same box.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

awyeah wrote:Maybe, yeah but I'm not sure though. Probobaly because it has never occured to me. It can happen I guess, after all ] [ is a brace as well :mrgreen:
[]'s are brackets, not braces...
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Yeah sorry for my unconventional, unorthodox and broken english, I am not very good at it. :roll:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked