mIRC Home    About    Download    Register    News    Help

Print Thread
$Calc disallow subtraction and division? #248814 27/10/14 11:57 AM
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?

Re: $Calc disallow subtraction and division? [Re: Kooky] #248815 27/10/14 02:05 PM
Joined: Feb 2011
Posts: 315
K
KindOne Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Feb 2011
Posts: 315
Why not paste the entire script?


irc.swiftirc.net #msl (mIRC Scripting Language)
Re: $Calc disallow subtraction and division? [Re: Kooky] #248817 27/10/14 06:58 PM
Joined: Jul 2006
Posts: 3,568
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,568
Why not checking if * or / is in $5 or in %y?

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


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net