Wish Posted January 28, 2006 Report Share Posted January 28, 2006 alias sban { /ban $iif($2 isnum 0-100,$+(-u,$calc($2 * 60)),) $+(q~:,$address($1,2)) } So this code? why do i need this part "$iif($2 isnum 0-100,$+(-u,$calc($2 * 60)),)" why can i not just have the calc $2 * 60 part and leave the isnum thing out? appreciate any help.. thanks! Link to comment Share on other sites More sharing options...
Angelia Posted January 28, 2006 Report Share Posted January 28, 2006 it's basically saying that if the second word after the alias is a number between 0 and 100 then it will ban for that number of minutes, otherwise it will just ban for the amount of time stated. eg: sban person 2 - this will ban person for 120 seconds (2 x 60) sban person 120 - this will ban for 120 seconds (120 > 100) Link to comment Share on other sites More sharing options...
hixxy Posted February 14, 2006 Report Share Posted February 14, 2006 it's basically saying that if the second word after the alias is a number between 0 and 100 then it will ban for that number of minutes, otherwise it will just ban for the amount of time stated. eg: sban person 2 - this will ban person for 120 seconds (2 x 60) sban person 120 - this will ban for 120 seconds (120 > 100) Anything above 100 means the ban will be permanent in the above alias. Link to comment Share on other sites More sharing options...
Pugzy Posted February 14, 2006 Report Share Posted February 14, 2006 no. Link to comment Share on other sites More sharing options...
hixxy Posted March 12, 2006 Report Share Posted March 12, 2006 No what? Link to comment Share on other sites More sharing options...
Warrior124 Posted March 12, 2006 Report Share Posted March 12, 2006 Actually, it means that if $2 is either $null, or doesn't exist, or above 100 it will ban permanently. Otherwise if $2 is from 0-100 it will ban for that amount of time times 60. Link to comment Share on other sites More sharing options...
hixxy Posted March 12, 2006 Report Share Posted March 12, 2006 If we're going to go into details it actually means if $2 is a number between 0 and 100 it will ban for that amount of minutes, but if $2 is any other value it will ban forever. Link to comment Share on other sites More sharing options...
Warrior124 Posted March 12, 2006 Report Share Posted March 12, 2006 Exactly, lol. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now