mIRC Home    About    Download    Register    News    Help

Print Thread
#125754 21/07/05 09:41 AM
Joined: Feb 2005
Posts: 74
S
SkyD Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Feb 2005
Posts: 74
hey... if someone writes !cool 12 or other number is okey.. but if writes !cool abcdefg.... thats wrong.. i need the script which says to user a message "thats wrong" if !cool abcdefg...
Please, help!

Last edited by SkyD; 21/07/05 09:41 AM.

[color:red]m[color:blue]IRC[color:green] for EvEr

#125755 21/07/05 09:48 AM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
You need to use the isnum operator in an if statement. For example,

on @*:text:!cool *:#channel:{
if ($2 !isnum) {
msg # That's the wrong format, use a number $nick $+ !
}
else {
msg # That's right $nick $+ , you specified a number!
}
}


For further help, see the following help file pages:
/help ON TEXT
/help if then else


Regards,


Mentality/Chris

Link Copied to Clipboard