you can read it like you wrote it. however if you want to save more than 1 price at the same time, I would recommned you use a list which you can read and write to you file.
you expect someone to run and debug that for you, without you bothering to test it yourself first? heh
that's not the way to learn Tcl/eggdrop scripting dude
anyway, some hints:
\$prize means your bind command is '$prize', which is probably not what you had in mind ($prize as variable)
your 'while' command is incorrect, use curly braces to enclose condition, not parenthesis
don't use built-in command's name ([gets]) as variable, this is bad practice
you try to use the file descriptor variable itself ([lindex $fs 0]) as data, which is nonsense
format your scripts using indentation, one statement per line
IMO, you are too lazy to bother trying to learn Tcl starting with simple and basic things first - you want to somehow jump writing complete and functional scripts, with others testing and debugging your stuff while you wait - as I said, this is not the way of becoming a scripter
erm, rather good, got most of it working, just need help on this !prize script, there is a error, and it does find the prize in the cupprize.db, my mate on irc said the script is correct, but he doesnt know the problem.
Can anyone help make a script to read a certain line from cupprize.db which a -string match *$chan* blah blah etc. Erm, i would post the !prize script, but i deleted it because it didnt work. Please help!!
i read that basic file operations, and what you said about not using the internal "get" command or whatever that is. The script i made worked, but replyed to the channel as: {#channel prize here}
How can i make it so it replies without the brackets and the channel name.
Thanks in advance!!