mIRC Home    About    Download    Register    News    Help

Print Thread
if statement problem need help #246502 14/06/14 08:13 PM
Joined: Mar 2014
Posts: 20
R
raven124 Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Mar 2014
Posts: 20
so for this if statement $2 is a nick but i dont know how i would have it check to see if nick 2's points are 0-20 i already have a an if statement checking to see if nick 1 has a certain amount of points to do the command.

if ($2 %points isnum 0-20) {

heres the whole code code script

http://pastebin.com/Uw9u3BiA

Re: if statement problem need help [Re: raven124] #246504 15/06/14 04:46 AM
Joined: Apr 2014
Posts: 191
B
blessing Offline
Vogon poet
Offline
Vogon poet
B
Joined: Apr 2014
Posts: 191
it should be
Code:
if ($readini(points.ini,$+(#,.,$2),points) isnum 0-20) {

Re: if statement problem need help [Re: blessing] #246523 16/06/14 02:09 AM
Joined: Mar 2014
Posts: 20
R
raven124 Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Mar 2014
Posts: 20
thank you so much