mIRC Home    About    Download    Register    News    Help

Print Thread
#98326 22/09/04 06:06 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
been searching the forum, but didnt find anything about this..
Code:
if ($read($mircdirgxfiles/highlight.txt,w,$+(*,%matchtxt,*))) { echo $color(info) -a * %matchtxt found at line $readn }

that find the word in the txt file if the word is 1 single word..
but if i add it in a sentence, then it dont react at all..
"hi" <<-- it reacts if hi is in the file.. but hi hello returns nothing.. same as hello hi, hi still in the txt file tho :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#98327 23/09/04 05:22 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
I think the problem lies somewhere else in the script. What exactly is the value of your variable? How is the script triggered? What is a typical line in the file? The code you gave works fine.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#98328 23/09/04 02:32 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
it didnt work with v 6.03 that was the prob, changed it a bit winkthnx anyway.. smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard