On text script - not working - 07/12/05 01:07 PM
on *:TEXT:!enemy:#: {
var %lines = 0
while ( $lines(enemy.txt) != %lines ) {
inc %lines
msg $chan 4 $+ $chr(35) $+ %lines $+ 12 $read(enemy.txt, %lines)
}
}
on *:TEXT:!enemyadd *:#: {
write enemy.txt $2-
}
on *:TEXT:!enemydel *:#: {
write -dl $+ $2 enemy.txt
}
I wonder what's wrong with it.. I copied it off another script and just changed a few things but I can't get it to work. =/
var %lines = 0
while ( $lines(enemy.txt) != %lines ) {
inc %lines
msg $chan 4 $+ $chr(35) $+ %lines $+ 12 $read(enemy.txt, %lines)
}
}
on *:TEXT:!enemyadd *:#: {
write enemy.txt $2-
}
on *:TEXT:!enemydel *:#: {
write -dl $+ $2 enemy.txt
}
I wonder what's wrong with it.. I copied it off another script and just changed a few things but I can't get it to work. =/