@ChunkieMonkey
in my opinion your declaring Z as your 1st number and X as 2nd number but your condition said Z=X*Y.. better change your inputs very well..that's all.
and for you Zmodem
using namespace std;
int main()
{
int num1,num2,product;
cout << "Enter first number: ";
cin >> num1;
cout << "Enter second number: ";
cin >> num2;
product = num1 * num2;
cout << "The product is: " << product << endl;
system("pause");
return 0;
}
better change it dude..
int num1,num2,product;>>> to double num1,num2,product;
cause integers are declaring only a single variable..
Lindirian...
I tried your script
on :ACTION:slaps:#: {
if ($($+(,$me,*) iswm $1-)) {
describe $chan slaps $nick around with a bit of a large trout
}
}
but I observed that if someone slap somebody not you... the script automatically slap back to the person who made the first slap...
can u fix it? by the way I like the script...
napa 182,
ur suggested kick is this one right?
on @*:kick:#:{
if ($knick == $me) {
echo $active $timestamp 0,3 $nick kicked u from $chan $+ . Crason: $1-
join $chan
kick $chan $nick Dumn dont kick me from $chan
}
}
I test it and I run it. I observed that, if some operator kick me out of purpose, the action will be is (ChanServ: #channelname - ME has deopped YOU) if im in the auto join when kick. and it never trigger the kick revenge.
my question is,
where is the line that saying, (Dumn dont kick me from $chan)?
Im referring to TYE script from canada who wrote of this script.
; Copy the following code into your remotes (Alt+R)
; Tye @ Undernet #mirc.net
on @:TEXT::#: {
; The list of swears. Words should be separated by commas
var %swears = fark,shoot,mittens
; Number of times to warn before banning
var %warns = 2
var %x = $numtok(%swears,44)
tokenize 32 $strip($1-)
while (%x) && ($nick isreg $chan) {
if ($istok($1-,$gettok(%swears,%x,44),32)) {
inc $+(%,swear.,$wildsite)
var %n = $($+(%,swear.,$wildsite),2)
if (%n <= %warns) {
notice $nick $nick $+ , this is your $ord(%n) warning for using forbidden language in this channel. $iif(%n = %warns,Breaking the channel rules one more time will result in ban.)
}
elseif (%n > %warns) {
ban -ku300 $chan $nick 2 Using forbidden language
unset $+(%,swear.,$wildsite)
}
}
dec %x
}
}
; Reset all of the swear data on mIRC start
on :START: { unset %swear. }
so, where will I delete the part of this script to enable to kick anybody and warn anybody who uses the foul word.