mIRC Homepage
Posted By: EviL_SmUrF files in directory - 08/02/03 08:33 PM
how would i pull data out of a file in a directory? im having problems with it:

if ($1 == !randomline) {
/set %seennick $2
/set %randomline $read(data\%seennick $+ .txt)
if (%randomline == $null) {
msg %chanstat I have no data for that nickname yet.
halt
}
msg %chanstat Random line that $2 has said: %randomline
}

i wanna pull data out of the %seennick $+ .txt file, and its in the data directory. whats the correct syntax for it? thanks!
Posted By: krunch Re: files in directory - 08/02/03 08:51 PM
try
Code:
/set %randomline $read(data\ $+ %seennick $+ .txt)

© mIRC Discussion Forums