Code: Select all
proc make:prize {nick host handle chan text} {
set newprize $text
if {![matchattr $handle C|C $chan} && ![matchattr $handle o|o $chan] {
putserv "PRIVMSG $chan :Error: You dont not have access to this command $nick."
} elseif {($cup(cup,$chan) == off)} || ($cup(cup,$chan) == "")} {
putserv "PRIVMSG $chan :Error: no cup is running."
} elseif {($newprize == "")} {
putserv "PRIVMSG $chan :Error: no prize was set, use ./!/?setprize prize."
} elseif {[matchattr $handle C|C $chan] || [matchattr $handle o|o $chan] && ($cup(cup,$chan) == on) {
set cup(prize,$chan) $newprize
putserv "PRIVMSG $chan :The prize is now: $cup(prize,$chan)
putserv "NOTICE $nick :Done."
}
}
[17:44] CUPBOT.TCL SCRIPT LOADED!!
[17:44] Tcl error in file 'eggdrop.conf':
[17:44] wrong # args: should be "proc name args body"
while executing
"proc make:prize {nick host handle chan text} {
set newprize $text
if {![matchattr $handle C|C $chan} && ![matchattr $handle o|o $chan] {
putserv "PRIV..."
(file "scripts/cupbot.tcl" line 116)
invoked from within
"source scripts/cupbot.tcl"
(file "eggdrop.conf" line 1329)
[17:44] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
C:\Documents and Settings\Chris\Desktop\eggdrops\eggy2>pause
Press any key to continue . . .
I cant seem to fix it, please help!!
Thanks in advance!!
also as you can see, the file system for the cupbot seemed to hard, so i went to vars.