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.

bind time with month doesnt work ?

Old posts that have not been replied to for several years.
Locked
b
b34r
Voice
Posts: 35
Joined: Wed Jun 18, 2003 4:09 pm

bind time with month doesnt work ?

Post by b34r »

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 ? :-?
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

errr.. try 08
b
b34r
Voice
Posts: 35
Joined: Wed Jun 18, 2003 4:09 pm

Post by b34r »

How come 08 ? that does not make any sense to me :D
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

b34r wrote:How come 08 ? that does not make any sense to me :D
no comment :o :roll:
b
b34r
Voice
Posts: 35
Joined: Wed Jun 18, 2003 4:09 pm

Post by b34r »

:lol:
thanx anyway, now it works
have to do alot of [exp $blah - 1] though...
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

b34r wrote::lol:
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 :D
User avatar
CrazyCat
Revered One
Posts: 1241
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

b34r wrote:How come 08 ? that does not make any sense to me :D
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.
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

CrazyCat wrote:
b34r wrote:How come 08 ? that does not make any sense to me :D
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.
b
b34r
Voice
Posts: 35
Joined: Wed Jun 18, 2003 4:09 pm

Post by b34r »

Now it says

Code: Select all

 Tcl error [test:test]: "09" is an invalid octal number
:roll:
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

b34r wrote:Now it says

Code: Select all

 Tcl error [test:test]: "09" is an invalid octal number
:roll:
Yeah, you can not do [expr 09 - 1]. Strip off the leading "0".
b
b34r
Voice
Posts: 35
Joined: Wed Jun 18, 2003 4:09 pm

Post by b34r »

&"%#%¤!"#%"&¤
I thought that the string would get short :x

Code: Select all

set variable [expr [string trimleft [lindex [split $testdate {-}] 0] 0 ] - 1] 
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
b
b34r
Voice
Posts: 35
Joined: Wed Jun 18, 2003 4:09 pm

Post by b34r »

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
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

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 =\
Locked