mIRC Home    About    Download    Register    News    Help

Print Thread
read lines #200933 15/06/08 05:13 AM
Joined: Nov 2007
Posts: 117
T
TheWarlock Offline OP
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
alias mostrar {
var %ti = 1
while (%ti <= 195) {
echo -a $read($1,%ti)
inc %ti
}

Opening - http://rapidshare.com/files/74328448/Yu-Gi-Ho___20-_20Opening.rar
Ending - http://rapidshare.com/files/74329170/Yu-Gi-Ho___20-_20Ending.rar
Cap 50 - El Duelista Misterioso 1Š Parte.
http://rapidshare.com/files/74274058/Yu-Gi-OH__20-_20050.part1.rar
http://rapidshare.com/files/74274648/Yu-Gi-OH__20-_20050.part2.rar
* /echo: insufficient parameters (line 4, script10.ini)

this the error i dont know how i do wtrong , any help

Re: read lines [Re: TheWarlock] #200934 15/06/08 06:32 AM
Joined: Aug 2006
Posts: 182
T
Thrull Offline
Vogon poet
Offline
Vogon poet
T
Joined: Aug 2006
Posts: 182
Chances are whatever you're using for $1 is invalid. So, what are you using?


Yar
Re: read lines [Re: Thrull] #200937 15/06/08 06:49 AM
Joined: Nov 2007
Posts: 117
T
TheWarlock Offline OP
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
the name of file to be downlad

Re: read lines [Re: TheWarlock] #200938 15/06/08 07:08 AM
Joined: Aug 2006
Posts: 182
T
Thrull Offline
Vogon poet
Offline
Vogon poet
T
Joined: Aug 2006
Posts: 182
Ummm. $read only works on text files. /help $read would explain it. If you're trying to download things, you'd need to use sockets. But unless you've had some experience using them, it might be a bit much.


Yar
Re: read lines [Re: Thrull] #200940 15/06/08 07:14 AM
Joined: Nov 2007
Posts: 117
T
TheWarlock Offline OP
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
i use a txt file for read
thnx

Re: read lines [Re: TheWarlock] #200943 15/06/08 08:17 AM
Joined: Aug 2006
Posts: 182
T
Thrull Offline
Vogon poet
Offline
Vogon poet
T
Joined: Aug 2006
Posts: 182
Then it ought to work fine. Make sure whatever you're reading exists and is in the proper directory. It should work just fine.


Yar
Re: read lines [Re: TheWarlock] #200950 15/06/08 12:26 PM
Joined: Aug 2003
Posts: 144
M
Miguel_A Offline
Vogon poet
Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
Hi.


Check if the $read parameter is not reading a blanck line. If he is that will give that error. To check that put for example:.
echo -s Line %Ti --> $read($1,%ti)

if the output appears only "Line x -->" itīs becouse somewhery on file you have blanckline.

Good luck

Last edited by Miguel_A; 15/06/08 12:27 PM.
Re: read lines [Re: TheWarlock] #200973 16/06/08 01:35 AM
Joined: Sep 2007
Posts: 109
K
kwell Offline
Vogon poet
Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
Prueba con...

Code:
alias mostrar {
  var %ti = 1
  while (%ti <= $lines($1)) { 
    if ($read($1,%ti)) echo -a $read($1,%ti)
    inc %ti
  }
}


Maybe the mistake is in the white lines

Re: read lines [Re: kwell] #200978 16/06/08 04:23 AM
Joined: Nov 2007
Posts: 117
T
TheWarlock Offline OP
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
simple great, thnx so much

Re: read lines [Re: Miguel_A] #200979 16/06/08 04:25 AM
Joined: Nov 2007
Posts: 117
T
TheWarlock Offline OP
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
thnx to all