mIRC Homepage
Posted By: truguce Help with variables - 10/09/06 07:45 AM
Ok i have improved very much in scripting but for some reason i can't get this script to msg me the variable. Im not sure if it a security feature on the new versions but i have tried many different ways to get this to work. I want the script to msg me the variable when i ask for it in a room.
Code:
on *:text:!truguce var *:#: {
  if (*truguce* iswm $nick) {
    echo $chr(37) $+ $3
  }
}

That was my last attempt to get it to work. I have these 2 vars that i wanted to echo in the room.
%kick.total 6
%kick.msg Bye
So i typed !truguce var kick.total and the responce i get is %kick.total
Please help
Thank you
Posted By: RusselB Re: Help with variables - 10/09/06 10:37 AM
Code:
 on *:text:!trugruce var*:#:{
if (*trugruce* iswm $nick) {
echo $+(%,$3) $($+(%,$3),2)
}
}
 
Posted By: truguce Re: Help with variables - 10/09/06 10:50 AM
thank you very much RusselB works perfect!
© mIRC Discussion Forums