Guest Posted May 3, 2004 Posted May 3, 2004 I have been looking at it and wondering if its possible to make a swearing script, I have seperate words but wanted to know if its possible to add the with an or command so if someone was to use 2 bad words in a sentance it would only make one warning instead of the 2 it does currenlty if (f*** isin $3-) { mta.say $1 No swearing please. } if (c*** isin $3-) { mta.say $1 No swearing please. } is what I have but was wondering if it could be done like if (f*** isin $3-) or (c*** isin $3-) etc... I think it would be possible but want to check
Oli Posted May 3, 2004 Posted May 3, 2004 sure it is... do it like this: if (f*** isin $3- || c*** isin $3- ) { mta.say $1 No swearing please. }
Guest Posted May 3, 2004 Posted May 3, 2004 ok cheers, thought it might have been an or command, but guess thats just the similar thing EDIT A slight problem with that, mIRC is saying "/if: ambigous error"
Si|ent Posted May 3, 2004 Posted May 3, 2004 Or you can use ELSEIF if blahblah { } elseif blahblah { } etc
Recommended Posts