proc marbi:arbi {nick host hand text} {
if {[isop $nick \#channel] == "1"} {
set cmd "[string tolower [lindex $text 0]]"
if {$cmd == "add"} {
<does something>
}
if {$cmd == "rem" || $cmd == "remove"} {
<does something>
}
if {$cmd == "list"} {
<does something>
} else {
<does something>
}
}
}
}
ok this is the thing, it used to work just fine last night. the tcl would give errors elsewhere, i fixed the mistake and now this area decided to kick in. this is the error message im getting
wrong # of args: should be "proc name args body"
while executing
blah blah blah blah
then it just pastes that same block of code at the first quote. wat the heck is wrong with it???? ive tried using $args, also $arg but nuthin works at all.
thx for the help in advanced
Yo momma's so fat she can be in the past, present, n future all at once
i already told ya, the message that mentions where the erorr is already in the very first post, look at the second quote.
the "blah blah blah" is
then it just pastes that same block of code at the first quote. wat the heck is wrong with it???? ive tried using $args, also $arg but nuthin works at all.
i just wrote "blah blah blah" as not to spam with the SAME THING that the first quote i wrote says
Yo momma's so fat she can be in the past, present, n future all at once
Did you edit the right file? Is that the exact code you're trying to load now? The above code would not generate the error you mentioned earlier. Please post your entire proc or the entire error message. (after making sure you loaded the right script)
lets put it this way, i deleted EVERYTHING in the file (its correct cuz i havent even closed it for the pas 36 hours), and i wrote exactly wat i posted previously, and tried loading it, and i got the same error.
Yo momma's so fat she can be in the past, present, n future all at once
Try adding a few linebreaks after the last } and make sure you save the file before reloading it ;P and PLEASE post the entire error message if it still doesn't work.