mIRC Home    About    Download    Register    News    Help

Print Thread
If's :( #254100 22/07/15 10:53 AM
Joined: Dec 2014
Posts: 68
M
michaelukz Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Dec 2014
Posts: 68
I need some help working with if's smirk As you may know from my previous post's I am kinda nooby when it comes to coding in mirc, But I am working on a "Help" command but I get this for outputs frown

Here is my code frown
Code:
on *:text:*:#: {
  if (!help isin $1) {
    msg $chan For more information type !help <command>
  }
  if (cash isin $2) {
    msg $chan The money used in this channel is called "KryptoBux" to see how many you have type !help balance
  }
}


Chat Output!

Re: If's :( [Re: michaelukz] #254102 22/07/15 11:39 AM
Joined: Jul 2015
Posts: 2
D
Dilof Offline
Bowl of petunias
Offline
Bowl of petunias
D
Joined: Jul 2015
Posts: 2
Code:
on *:text:*:#: {
  if (!help isin $1) {
    if ($2 == $null) {
      msg $chan For more information type !help <command>
    }
    if (cash isin $2) {
      msg $chan The money used in this channel is called "KryptoBux" to see how many you have type !help balance
      return
    }
    if (something isin $2) {
      ;do something
    }
    else return
  }
}

Re: If's :( [Re: Dilof] #254111 23/07/15 04:39 AM
Joined: Dec 2014
Posts: 68
M
michaelukz Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Dec 2014
Posts: 68
Thanks!