mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2014
Posts: 42
K
Kooky Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Oct 2014
Posts: 42
So I have a snippet where $calc($5 %y)

I have it working fine.

BUT I want to not allow * or /

Any suggestions?

Joined: Feb 2011
Posts: 448
K
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 448
Why not paste the entire script?

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
Why not checking if * or / is in $5 or in %y?

Code:
if ($istok(* /,$5,32)) || ($istok(* /,%y,32)) echo -s * / used
else yourscript...


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard