![]() |
|
|||||||
| Tcl scripting Tcl scripting related questions |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Nov 2006
Age: 26
Posts: 3
Rep Power: 0 ![]() |
as vrea sa ma ajutati la o chestie cu setudef vreau sa pun la trivie sa setez pe ce canal vreau trivia prin comanda .chanset +trivia ...ma puteti ajuta cu ceva sau sa imi ziceti unde sa intru sa vad asa ceva?
am setat asa ceva in trivie Code:
setudef flag trivia
bind join - * trivia
proc trivia {nick uhost hand chan text} {
global botnick tgchan trivia
if {($text == "") || ([regexp -nocase "all" $text]) || ([regexp -nocase "Resident" $text])} {
if {(([lsearch -exact [string tolower $tgchan] [string tolower $chan]] != -1) || ($tgchan == "*"))} {
if {[string match "*+trivia*" [channel info $chan]]} {
}
}
}
Last edited by UniversaliA; 21-05-2008 at 01:24. |
|
|
|
|
|
#2 (permalink) |
|
#a&a representative
|
Din start se observa ca in lipseste o "}" la sfarsit, cea care inchide procesul.
Second, ultimul if: ai pus conditie, ai deschis si nu ai facut nimic ![]() Anyway, eroare iti da de la ultima acolada, asa ca pune-o si vezi ![]() Code:
setudef flag trivia
bind join - * trivia
proc trivia {nick uhost hand chan text} {
global botnick tgchan trivia
if {($text == "") || ([regexp -nocase "all" $text]) || ([regexp -nocase "Resident" $text])} {
if {(([lsearch -exact [string tolower $tgchan] [string tolower $chan]] != -1) || ($tgchan == "*"))} {
if {[string match "*+trivia*" [channel info $chan]]} {
}
}
}
}
__________________
Best regards, Erised |
|
|
|
|
|
#3 (permalink) |
|
Junior Member
Join Date: Nov 2006
Age: 26
Posts: 3
Rep Power: 0 ![]() |
acuma merge sa se seteze .chanset +_trivia dar cand dau !start nu vrea sa porneasca imi puteti zice care ar fi problema
am bagat de mai sus partea aia dar nu face nici o miscare mia apoarut in botnet asta Tcl error [trivia]: wrong # args: should be "trivia nick uhost hand chan text" |
|
|
|
|
|
#4 (permalink) |
|
Member
Join Date: Jun 2004
Location: Canada
Age: 18
Posts: 141
Rep Power: 0 ![]() |
Code:
[11:44:20] (Rudo|ph): (8) JOIN (stackable) [11:44:20] (Rudo|ph): bind join <flags> <mask> <proc> [11:44:20] (Rudo|ph): procname <nick> <user@host> <handle> <channel> [11:44:28] (Rudo|ph): read the fucking tcl-commands.doc yourself, bitch |
|
|
|