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.

help about this error

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

help about this error

Post by ultralord »

Guys what is the problem with this error?

Tcl error [g_addme]: wrong # args: should be "time command ?count?"

what is mean?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Your script uses the time-command improperly.

Worth keeping in mind, is that in older versions of eggdrop, there was an eggdrop-speciffic command named time, that would return current time. It was however removed to avoid conflicts, as tcl introduced their time-command.
NML_375
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

Post by ultralord »

how i can resolve it? i have this problem sometime not all the time why?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

IF you're the author of the script, locate any and all occurances of the command, deduce wether it's suppsed to use the tcl-native time command, or the "old eggdrop" version, which has to be replaced with [clock seconds] as I recall it.

If you're not the author, you might also try to get in touch with the author regarding a fixed/more recent version of the script.
NML_375
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

Post by ultralord »

ahm.. because i dont underestand how to fix it? i have tcl from someone but i change it myself and that problem i dont know it :S
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Post the code?
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

Post by ultralord »

you can download it from here..

http://www.tclscript.com/cgi-bin/dbs.cgi?get=pwf.tcl

is the same tcl but mine is more edited with more features.. but this tcl have the same problem..

when someone type !add to join in gather game at this time i saw the error msg in dcc chat but not all the time.. only 10th player when he add i saw the error ..

thnx
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

The link you have given indicates that this script is written by strikelight.

If this is correct you can contact the author OR make a post on his forum.

Modifying another's script without first approaching them is out of step with the spirit of open source.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply