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.
-
T
ThePage
Post
by ThePage »
Hey Guyz!
I would like a reference link to understand what I am doing wrong with that script :
set fidCmpt [open "file.cmpt" RDWR]
set cmpt [read -nonewline $fidCmpt]
incr $cmpt
puthelp "NOTICE $nick :Counter is at $cmpt"
close $fidCmpt
I also tried incr $(cmpt)
On incr $(cmpt) I got : Tcl error [join_justjoined]: can't read "(cmpt)": no such variable
On incr $cmpt I got : Tcl error [join_justjoined]: can't read "1000": no such variable
1000 is the value red in file.cmpt just above.
After some tests I tought I need to convert $cmpt in interger or something.. I did not found how to yet.. Can you refer me somewhere?
Thanx!!
-
Papillon
- Owner
- Posts: 724
- Joined: Fri Feb 15, 2002 8:00 pm
- Location: *.no
Post
by Papillon »
no need for the $ infront
Elen sila lúmenn' omentielvo
-
T
ThePage
Post
by ThePage »
even with the $ i get the same error
-
T
ThePage
Post
by ThePage »
I am terribly sorry I didn't read properly....
Drug is bad mmm'Kay??

-
Papillon
- Owner
- Posts: 724
- Joined: Fri Feb 15, 2002 8:00 pm
- Location: *.no
Post
by Papillon »
hehe... I'll take your word for it

Elen sila lúmenn' omentielvo