mIRC Home    About    Download    Register    News    Help

Print Thread
problems with one code.. #104068 29/11/04 06:52 AM
Joined: Nov 2004
Posts: 84
GogetaX Offline OP
Babel fish
OP Offline
Babel fish
Joined: Nov 2004
Posts: 84
look at this:

Code:
 on *:TEXT:!stats:#mu.crash: { if( $$chan ( #mu.crash ).topic == 0,4 Mu.CRASH 0,7|[STATUS:1,7 UP 0,7 ] Rabota servera s 9:00 do 23:00|REG /msg _MG_ |0,3AUTORES 350 lvl zahodja drugim 4arom na 1 min EXP 6k|0,12V.97 SITE http://CRASH.Mu.eclub.lv i http://www.skcom.up.co.il /connect /uCRASH.valsts.lv /p44405 0,9FRIENDS1 #CS.VALSTS.LV NA6 CS SERVER 1.5 #CS.CRASH ) {
    /msg $chan 8Mu CRASH 7( 0UP 7)
    } else {
    /msg $chan 8Mu CRASH 7( 0Down 7)
  }
}
 


tell me please whats wrong with this?


it needs to be, when in topic "Status: UP" then msg MUCRASH UP
else
msg MUCrash DOWN

how to do that?

Last edited by GogetaX; 29/11/04 07:04 AM.

by the time you finish reading this, you realize you have wasted 5 secundes of your life!
Re: problems with one code.. #104069 29/11/04 07:11 AM
Joined: Nov 2004
Posts: 84
GogetaX Offline OP
Babel fish
OP Offline
Babel fish
Joined: Nov 2004
Posts: 84
ok, my quetrion is how to use "else"?


by the time you finish reading this, you realize you have wasted 5 secundes of your life!
Re: problems with one code.. #104070 29/11/04 07:35 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
} else {

would look like:
}
else {


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: problems with one code.. #104071 29/11/04 11:56 AM
Joined: May 2004
Posts: 95
W
wiebe Offline
Babel fish
Offline
Babel fish
W
Joined: May 2004
Posts: 95
when using else in the middle of a line, it needs a |, like "} | else {"