Mute script wont work!

Paste Your code(s) here, and state your problem.

Mute script wont work!

Postby Jerzy » Sun May 03, 2009 4:34 pm

Hey sp00fed.org!
Something wrong with my mute script
when i type .mute it mutes the channel
but my bot do nothing when i types .unmute, you can see my script downunder (:
Code: Select all
on *:TEXT:.mute:#Jerzy:{ 
if ($nick isop $chan) {
if ($me isop $chan) {
.mode $chan +m
}
.msg $chan 0,14[0J4]0 Kanalen er nu midlertidlig muted, og du har nu ingen mulighed for at skrive. 4[0J4]
.msg $chan 0,14[0J4]0 Forbliv tålmodig, der vil komme mere information! 4[0J4]
}
else { .notice $nick 0,14[0J4]0 <4!0> Du er ikke operator på #Jerzy <4!0> 4[0J4] }
}
}
on *:TEXT:.unmute:#Jerzy:{
if ($nick isop $chan) {
if ($me isop $chan) {
.mode $chan -m
.msg $chan 0,14[0J4]0 Kanalen er nu unmuted, og du har nu mulighed for at skrive igen. 4[0J4]
}
else { .notice $nick 0,14[0J4]0 <4!0> Du er ikke operator på #Jerzy <4!0> 4[0J4] }
}
}
Jerzy
 

Re: Mute script wont work!

Postby Cristian » Sun May 03, 2009 4:48 pm

you have a misplaced bracket }, in your mirc editor in the upper right corner there is a { } button, try and hit that, it should give a hint about the misplaced bracket.
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar

Re: Mute script wont work!

Postby Jerzy » Sun May 03, 2009 4:54 pm

it tells me: There seems to be a bracket mis-match somewhere in line 11, what do i have to do?
Jerzy
 

Re: Mute script wont work!

Postby Futz0r » Sun May 03, 2009 5:01 pm

Code: Select all
on *:TEXT:.mute:#Jerzy:{ 
  if ($nick isop $chan) {
    if ($me isop $chan) {
      .mode $chan +m
    }
    .msg $chan 0,14[0J4]0 Kanalen er nu midlertidlig muted, og du har nu ingen mulighed for at skrive. 4[0J4]
    .msg $chan 0,14[0J4]0 Forbliv tålmodig, der vil komme mere information! 4[0J4]
  }
  else { .notice $nick 0,14[0J4]0 <4!0> Du er ikke operator på #Jerzy <4!0> 4[0J4] }
}

on *:TEXT:.unmute:#Jerzy:{
  if ($nick isop $chan) {
    if ($me isop $chan) {
      .mode $chan -m
      .msg $chan 0,14[0J4]0 Kanalen er nu unmuted, og du har nu mulighed for at skrive igen. 4[0J4]
    }
    else { .notice $nick 0,14[0J4]0 <4!0> Du er ikke operator på #Jerzy <4!0> 4[0J4] }
  }
}


There. its done now :)

i have removede 1 x } on linje 11
Futz0r
 

Re: Mute script wont work!

Postby Jerzy » Sun May 03, 2009 5:03 pm

thanks it works now (:
Jerzy
 


Return to Mirc Scripting Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron