mIRC Home    About    Download    Register    News    Help

Print Thread
#226218 23/09/10 02:33 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I have a combo, and i list different char's. and i can return everyone but ) $chr(41), it return nothing, the chars i list in the combo is:
Code:
    did -a $dname 7 $chr(60)
    did -a $dname 7 $chr(62)
    did -a $dname 7 $+($chr(60),$chr(60))
    did -a $dname 7 $+($chr(62),$chr(62))
    did -a $dname 7 $chr(171)
    did -a $dname 7 $chr(187)
    did -a $dname 7 $chr(40)
    did -a $dname 7 $chr(41)
    did -a $dname 7 $chr(176)
    did -a $dname 7 $chr(91)
    did -a $dname 7 $chr(93)
    did -a $dname 7 $chr(124)
    did -a $dname 7 $+($chr(126),$chr(176))
    did -a $dname 7 $+($chr(176),$chr(126))

and the code $gettok($did(7,$did(7).sel).text,1,41) return everything else from the combo. I also tested to use $eval(,N) but return nothing.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
$***tok cannot return the char you use as token delimiter: $gettok(...,41).

Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Thnx, didn't think of that smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Why use $gettok() here anyway? None of the stuff you're adding to the combo list has a ) in it so there's no need for that $gettok.

Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
dont know why, just ended up that way.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard