mIRC Home    About    Download    Register    News    Help

Topic Options
#79078 - 13/04/04 03:01 AM help on this
jacksparrow2 Offline
Fjord artisan

Registered: 30/10/03
Posts: 306
Loc: Argentina
on 1:INPUT:#: {
if $1 isin op deop voice {
if $1 == op { .echo -s 15 X te ha subido de Op | .mode # +o $2 }
elseif $1 == dvoice { .mode # -v $2 }
elseif $1 == deop { .echo -s 12 X te ha subido de Op | .mode # -o $2 }
elseif $1 == voice { .echo -s 12 X te ha dado Voice | .mode # +v $2 }


haltdef
}
}


the elseif $1 devoice its wrong how can i do i t

thnx

_________________________
mess with the best

Top
#79079 - 13/04/04 03:17 AM Re: help on this
Zeusbwr Offline
Vogon poet

Registered: 30/03/04
Posts: 111
well just starting, you said "devoice" and your script says "dvoice".

Top
#79080 - 13/04/04 03:22 AM Re: help on this
Zeusbwr Offline
Vogon poet

Registered: 30/03/04
Posts: 111
i think this is your problem.
Code:
 
if $1 isin op deop voice {
 

your looking for a devoice command, and devoice isnt in "op deop voice"

you can do this and it should work, assuming this is the problem.

Code:
if $1 isin op deop voice [color:red]devoice[/color] {
  

Top
#79081 - 13/04/04 01:32 PM Re: help on this
jacksparrow2 Offline
Fjord artisan

Registered: 30/10/03
Posts: 306
Loc: Argentina
thnx my pal
_________________________
mess with the best

Top
#79082 - 13/04/04 04:03 PM Re: help on this
AnhTraiSG Offline
Pikka bird

Registered: 13/04/04
Posts: 11
Your code is missing dvoice in the IF sentence, so after the fist IF condition your script is stoped. This is the script you want:
Code:
on 1:INPUT:#: {
   if $1 isin op deop voice dvoice {
      if $1 == op { .echo -s 15 X te ha subido de Op | .mode # +o $2 }
      elseif $1 == dvoice { .mode # -v $2 }
      elseif $1 == deop { .echo -s 12 X te ha subido de Op | .mode # -o $2 }
      elseif $1 == voice { .echo -s 12 X te ha dado Voice | .mode # +v $2 }
      haltdef
   }
} 


Top
#79083 - 13/04/04 11:22 PM Re: help on this
Zeusbwr Offline
Vogon poet

Registered: 30/03/04
Posts: 111
fyi, if you want you could also just do:
Code:
   if $1 isin deop devoice {
 

i havent tested that but it SHOULD work, because "op" is in "deop" and "voice" is in "devoice". and if your ganna get more complicated in your if statement, like dif if statements catching dif words, id go with tokens. somethin like
Code:
if $istok(op.deop.voice.devoice,$1,46) == $true {
 

but thats only if you need it, gl smile

Top