mIRC Home    About    Download    Register    News    Help

Topic Options
#248814 - 27/10/14 11:57 AM $Calc disallow subtraction and division?
Kooky Offline
Ameglian cow

Registered: 15/10/14
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?

Top
#248815 - 27/10/14 02:05 PM Re: $Calc disallow subtraction and division? [Re: Kooky]
KindOne Offline
Fjord artisan

Registered: 23/02/11
Posts: 307
Why not paste the entire script?
_________________________
irc.swiftirc.net #msl (mIRC Scripting Language)

Top
#248817 - 27/10/14 06:58 PM Re: $Calc disallow subtraction and division? [Re: Kooky]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3438
Loc: France
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

Top