Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
$Calc disallow subtraction and division?
Forums
Active Threads
Search
Who's Online
Help
Print Thread
$Calc disallow subtraction and division?
#
248814
27/10/14
11:57 AM
Joined:
Oct 2014
Posts: 42
K
Kooky
OP
Ameglian cow
OP
Kooky
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?
Copy Link to Clipboard
Re: $Calc disallow subtraction and division?
Kooky
#
248815
27/10/14
02:05 PM
Joined:
Feb 2011
Posts: 448
K
KindOne
Pan-dimensional mouse
KindOne
Pan-dimensional mouse
K
Joined:
Feb 2011
Posts: 448
Why not paste the entire script?
Copy Link to Clipboard
Re: $Calc disallow subtraction and division?
Kooky
#
248817
27/10/14
06:58 PM
Joined:
Jul 2006
Posts: 4,145
France
W
Wims
Hoopy frood
Wims
Hoopy frood
W
Joined:
Jul 2006
Posts: 4,145
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...
#mircscripting @
irc.swiftirc.net
== the best mIRC help channel
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage