mIRC Homepage
Posted By: markspec87 Variable wont change - 23/08/06 07:54 PM
i have a bot which has a latest offers optio nbut the variable wont change, i dont know why

code to display offers:

Code:
on *:TEXT:!offers:#:{ //msg #mychannel  latest Offers:4 %offers }


works fine.

Code to assign new one:

Code:
on *:TEXT:!setoffers *:#mychannel: { if ($nick isop $chan) { //unset %offers  | //set %offers $2- | //notice $nick 4,140 Current offers Changed To: %offers } }  


When i do !setoffers test. Nothing happens :9

Any ideas?
Posted By: xDaeMoN Re: Variable wont change - 23/08/06 08:34 PM
Were you an OP when you typed that command?
Posted By: MikeChat Re: Variable wont change - 23/08/06 08:38 PM
make sure you have no other "on text" that is conflicting
and that you have the channel specified right
Code:
on *:TEXT:!offers:#channel:{ 
  msg #channel latest Offers:4 %offers 
}
on *:TEXT:!setoffers *:#channel:{ 
  if ($nick isop $chan) { 
    set %offers $2-
    notice $nick 4,140 Current offers Changed To: %offers 
  }
}  

tested and this worked
© mIRC Discussion Forums