mIRC Home    About    Download    Register    News    Help

Print Thread
#209517 16/02/09 08:00 PM
B
booth
booth
B
How can I make this read more than one line?


Code:
on *:TEXT:!next:#: msg # $read(next.txt)



P
pouncer
pouncer
P
$read only reads once. do you want it to read more than once and msg more than once? if so, why not have the msg twice?

Last edited by pouncer; 16/02/09 08:07 PM.
B
booth
booth
B
I have 2 lines, the first line is never overwritten only the second. I want to read and msg to # both lines in 1 message.

Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
$read(file,1) return the first line of your file, $read(file,2) return the second line...


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Instead of reading one line, then messaging it, then reading the other line, then messaging it, use the /play command

See /help /play

This will be especially helpful if, in the future, you decide to increase the number of lines in the text file.

B
booth
booth
B
Thanks.

P
Pivo
Pivo
P
I wonder why you actually want to read the first line if it doesn't ever change anyway...
You could simply /msg the text itself.


Link Copied to Clipboard