mIRC Homepage
Posted By: Kooky $Calc disallow subtraction and division? - 27/10/14 11:57 AM
So I have a snippet where $calc($5 %y)

I have it working fine.

BUT I want to not allow * or /

Any suggestions?
Posted By: KindOne Re: $Calc disallow subtraction and division? - 27/10/14 02:05 PM
Why not paste the entire script?
Posted By: Wims Re: $Calc disallow subtraction and division? - 27/10/14 06:58 PM
Why not checking if * or / is in $5 or in %y?

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