mIRC Home    About    Download    Register    News    Help

Print Thread
#169370 22/01/07 08:12 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
Code:
alias readtxt {
  goto $r(1,2)
  :1 | return $read(text1.txt)
  :2 | return $read(text2.txt)
}

on *:text:!msgs:#:{ msg # $readtxt }


Is this the right way to do this?
or do i miss something or made mistakes


learn learn learn
Joined: Jan 2007
Posts: 4
C
Self-satisified door
Offline
Self-satisified door
C
Joined: Jan 2007
Posts: 4
I was like this.
Code:
alias readtxt { return $read($+(read,$r(1,2),.txt)) }
on *:text:!msgs:#:{ msg # $readtxt }

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Why not try it out and see if it works? In the time it takes to ask us you could try it yourself smile

Anyhow, it looks ok to me but Cry1004's way would be neater.

Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
yes it works sorry i meant is there another way to do that laugh


learn learn learn

Link Copied to Clipboard