mIRC Home    About    Download    Register    News    Help

Print Thread
Help with variables #158831 10/09/06 07:45 AM
Joined: Oct 2005
Posts: 91
T
truguce Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Oct 2005
Posts: 91
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

Re: Help with variables #158832 10/09/06 10:37 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
 on *:text:!trugruce var*:#:{
if (*trugruce* iswm $nick) {
echo $+(%,$3) $($+(%,$3),2)
}
}
 

Re: Help with variables #158833 10/09/06 10:50 AM
Joined: Oct 2005
Posts: 91
T
truguce Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Oct 2005
Posts: 91
thank you very much RusselB works perfect!