Hello; I just joined the MIRC forums and am happy to be here =). Anyway getting to the problem, I am having a problem with a variable. I am trying to remove the first word in a variable called %readtext and its from a text file (Code Below):
/output {
//set %file C:\Westwood\RenegadeFDS\Server\renlog_ $+ $date(m-d-yyyy) $+ .txt
set %lines $lines(%file)
if (%lines >= 4) {
set %readline $calc(%lines - 2)
//readlog
}
if (%lines <= 4) {
set %readline 0
//readlog
}
}
/readlog {
if (%readline != $calc(%lines + 1)) {
//set %readtext $remove($read(%file,%readline),$1)
//msg %normalchannel 4[RR] $remove(%readtext,[ $+ [ $1 ] ])
//set %lines $lines(%file)
//inc %readline
//checklines
}
if (%readline == $calc(%lines + 1)) {
//checklines
}
}
/checklines {
if (%readline == $calc(%lines + 1)) {
//checklines2
}
if (%readline != $calc(%lines + 1)) {
//readlog
}
}
/checklines2 {
if (%readline == $calc(%lines + 1)) {
//.timerchecklines 0 0.1 //checkfinal
}
if (%readline != $calc(%lines + 1)) {
//readlog
}
}
/checkfinal {
if (%readline == $calc(%lines + 1)) {
//set %lines $lines(%file)
}
if (%readline != $calc(%lines + 1)) {
//.timerchecklines off
//readlog
}
}
IF there is any way I can remove $1 from %readtext, then can someone tell me.
Please, Thanks, and Reguards;
~Rexs8