mIRC Homepage
Hey, I made a test script for some future commands and stuff but it doesn't really work...

Code:
on *:text:!trusted*:#:{
  if ($nick isin $read(Trusted, w, $nick)) {
    msg $chan $nick is trusted!
  }
  else {
    msg $chan $nick is not trusted!
  }
}


This is the script.
The problem is: even if the name of the user is in my textfile the bot says "NICKNAME is not trusted!".

Please help
$read(Trusted, w, $nick) may be you missed extention - Trusted.txt?
And you can actually shorten "($nick isin $read(Trusted.txt,w,$nick))" to "($read(Trusted.txt,w,$nick))"
I created a variable called Trusted connected with the path to the textfile called trusted.txt. This textfile has all the names in it (each name on one line)

And thank you for the shortened version, good to know smile

Quote:
%Trusted E:\Bot\trusted.txt
is the variable

"$read(Trusted, w, $nick)" is not "$read(%Trusted, w, $nick)"
EDIT: Dissolved the problem!
© mIRC Discussion Forums