mIRC Home    About    Download    Register    News    Help

Print Thread
isin help #106591 01/01/05 03:29 PM
Joined: Sep 2004
Posts: 10
D
devve Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Sep 2004
Posts: 10
was wondering if I want to use the word (HELP) in a isin, how to do it?
Can I use ((HELP) isin $1) or must I use somekind of chars that defines it like ("(HELP)" isin $1) ?

Re: isin help #106592 01/01/05 04:31 PM
Joined: Mar 2004
Posts: 175
Relinsquish Offline
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
Code:
If ($Chr(40) $+ HELP $+ $Chr(41) isin $1)


- Relinsquish
Re: isin help #106593 01/01/05 05:08 PM
Joined: Oct 2003
Posts: 96
J
JoeDaddy Offline
Babel fish
Offline
Babel fish
J
Joined: Oct 2003
Posts: 96
that or ..
Code:
if ($istok($1-,$+($chr(40),HELP,$chr(41)),32))

Last edited by JoeDaddy; 01/01/05 05:10 PM.
Re: isin help #106594 01/01/05 08:13 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Or
  • if $istok($1-,(HELP),32) { grin }

Re: isin help #106595 01/01/05 08:35 PM
Joined: Oct 2003
Posts: 96
J
JoeDaddy Offline
Babel fish
Offline
Babel fish
J
Joined: Oct 2003
Posts: 96
does that work? I assumed it would error lol crazy

Edit:
-
grin Unknown command
-

:tongue:

Last edited by JoeDaddy; 01/01/05 08:40 PM.
Re: isin help #106596 01/01/05 08:46 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Yeah that works.

Try: //tokenize 32 one (HELP) two | if $istok($1-,(HELP),32) { echo -a success }

Greets


Gone.
Re: isin help #106597 01/01/05 08:56 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
That "Unknown command" error is vecause you used the ":[/b])" smiley instead of a valid command laugh

Re: isin help #106598 01/01/05 10:30 PM
Joined: Oct 2003
Posts: 96
J
JoeDaddy Offline
Babel fish
Offline
Babel fish
J
Joined: Oct 2003
Posts: 96
Yeah I know .. I was bein a smartass lol :tongue: