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.
Old posts that have not been replied to for several years.
b34r
Voice
Posts: 35 Joined: Wed Jun 18, 2003 4:09 pm
Post
by b34r » Mon Sep 29, 2003 1:20 pm
Well, as the topic says when i want to use a month in the bind, nothing happens...
Code: Select all
bind time - "15 19 29 * *" test:test <- works
bind time - "15 19 29 9 *" test:test <- does not work
bind time - "15 19 29 09 *" test:test <- does not work
How come ? Am i doing something wrong ?
egghead
Master
Posts: 481 Joined: Mon Oct 29, 2001 8:00 pm
Contact:
Post
by egghead » Mon Sep 29, 2003 1:36 pm
errr.. try 08
b34r
Voice
Posts: 35 Joined: Wed Jun 18, 2003 4:09 pm
Post
by b34r » Mon Sep 29, 2003 1:39 pm
How come 08 ? that does not make any sense to me
egghead
Master
Posts: 481 Joined: Mon Oct 29, 2001 8:00 pm
Contact:
Post
by egghead » Mon Sep 29, 2003 1:40 pm
b34r wrote: How come 08 ? that does not make any sense to me
no comment
b34r
Voice
Posts: 35 Joined: Wed Jun 18, 2003 4:09 pm
Post
by b34r » Mon Sep 29, 2003 1:43 pm
thanx anyway, now it works
have to do alot of [exp $blah - 1] though...
egghead
Master
Posts: 481 Joined: Mon Oct 29, 2001 8:00 pm
Contact:
Post
by egghead » Mon Sep 29, 2003 1:47 pm
b34r wrote:
thanx anyway, now it works
have to do alot of [exp $blah - 1] though...
Yeah. And once someone decides to fix it you will have to undo it again
Online
CrazyCat
Revered One
Posts: 1304 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Mon Sep 29, 2003 1:48 pm
b34r wrote: How come 08 ? that does not make any sense to me
hum, peharps than 1st month (january) is 00 ?
I didn't find anything about it on
http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm but I've not search for a long time.
egghead
Master
Posts: 481 Joined: Mon Oct 29, 2001 8:00 pm
Contact:
Post
by egghead » Mon Sep 29, 2003 1:50 pm
CrazyCat wrote: b34r wrote: How come 08 ? that does not make any sense to me
hum, peharps than 1st month (january) is 00 ?
I didn't find anything about it on
http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm but I've not search for a long time.
If you use [clock format [clock seconds] -format %m], you will get a number between 01 and 12.
b34r
Voice
Posts: 35 Joined: Wed Jun 18, 2003 4:09 pm
Post
by b34r » Mon Sep 29, 2003 1:54 pm
Now it says
Code: Select all
Tcl error [test:test]: "09" is an invalid octal number
egghead
Master
Posts: 481 Joined: Mon Oct 29, 2001 8:00 pm
Contact:
Post
by egghead » Mon Sep 29, 2003 1:57 pm
b34r wrote: Now it says
Code: Select all
Tcl error [test:test]: "09" is an invalid octal number
Yeah, you can not do [expr 09 - 1]. Strip off the leading "0".
b34r
Voice
Posts: 35 Joined: Wed Jun 18, 2003 4:09 pm
Post
by b34r » Mon Sep 29, 2003 2:04 pm
&"%#%¤!"#%"&¤
I thought that the string would get short
Code: Select all
set variable [expr [string trimleft [lindex [split $testdate {-}] 0] 0 ] - 1]
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Mon Sep 29, 2003 2:19 pm
With [expr [rand 10] +1] will be a *random* number from 1 to 10.
Once the game is over, the king and the pawn go back in the same box.
b34r
Voice
Posts: 35 Joined: Wed Jun 18, 2003 4:09 pm
Post
by b34r » Mon Sep 29, 2003 2:23 pm
Ehm, sorry but i don't need random numbers
But now i'm in trouble again
Code: Select all
bind time -|- "21 20 29 8 *" test:test <- does not work
bind time -|- "21 20 29 08 *" test:test <- works
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Mon Sep 29, 2003 3:18 pm
What the heck I did sow with rand over there then? Oups..
Once the game is over, the king and the pawn go back in the same box.
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Mon Sep 29, 2003 7:16 pm
man.. bind time is such an incompatible piece of junk it isn't funny...
somewhere along the line, eggdrop developers decided to pad the arguments (month/minute/hour/day/year) with 0's, breaking other scripts, and causing backwards compatibility issues with previous eggdrop versions....
My opinion, scrap bind time altogether so no1 touches it =\