mIRC Homepage
Posted By: GogetaX problems with one code.. - 29/11/04 06:52 AM
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?
Posted By: GogetaX Re: problems with one code.. - 29/11/04 07:11 AM
ok, my quetrion is how to use "else"?
Posted By: sparta Re: problems with one code.. - 29/11/04 07:35 AM
} else {

would look like:
}
else {
Posted By: wiebe Re: problems with one code.. - 29/11/04 11:56 AM
when using else in the middle of a line, it needs a |, like "} | else {"
© mIRC Discussion Forums