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.

trivia tcl by Harry Scarry - script has error

Support & discussion of released scripts, and announcements of new releases.
P
Pampa
Voice
Posts: 1
Joined: Mon Nov 10, 2008 10:15 am

Post by Pampa »

I may be a little late, but I have found a solution to this problem

just replace

Code: Select all

   if {[catch {incr tghintnum}]!=0} {
      set tghintnum 0
      regsub -all -- "\[^A-Za-z0-9\]" $tgcurrentanswer "" _hintchars
      set tgmaxhintcurrent [expr [strlen $_hintchars]<=$tgmaxhint?[expr [strlen $_hintchars]-1]:$tgmaxhint]
      catch {tgunbindhintcmd}
      if {$tgmaxhintcurrent>0} {
         set tgrebindhinttimer [utimer $tgtempnohint tgbindhintcmd]
      }
   } 
by this :

Code: Select all

   if {![info exists tghintnum]} {
      set tghintnum 0
      regsub -all -- "\[^A-Za-z0-9\]" $tgcurrentanswer "" _hintchars
      set tgmaxhintcurrent [expr [strlen $_hintchars]<=$tgmaxhint?[expr [strlen $_hintchars]-1]:$tgmaxhint]
      catch {tgunbindhintcmd}
      if {$tgmaxhintcurrent>0} {
         set tgrebindhinttimer [utimer $tgtempnohint tgbindhintcmd]
      }
   } else { incr tghintnum }
Hope it will help.

See ya !
E
ExYuLink
Voice
Posts: 2
Joined: Tue Jan 11, 2011 2:05 pm

Post by ExYuLink »

I know it's outdated topic, but I can't find the solution on the web.

I'm using eggdrop v1.6.18 on FreeBSD 7.3-RELEASE-pX, and I have the same problem with the tgmaxhintcurrent variable. 1.6.18 and 1.6.19 have the same exact problem, on different platforms.

Does anyone have any idea how to fix this problem?
E
ExYuLink
Voice
Posts: 2
Joined: Tue Jan 11, 2011 2:05 pm

Post by ExYuLink »

Sorry, I didn't notice the answer above. I was looking only on the first page.

Pampa, thank you, your post solves the issue.
j
javidav
Voice
Posts: 2
Joined: Fri Jun 13, 2014 11:17 pm

Post by javidav »

Thank you Pampa, it's works!!!
Post Reply