mIRC Home    About    Download    Register    News    Help

Print Thread
#15096 12/03/03 09:53 PM
M
Madness
Madness
M
also have another prob maybe u can help me again

on 100:TEXT:!vrequest*:#:{ var %i $lines(request.txt) | .msg $chan In Resquesting Que There Is :- | var %l 1 | while (%l <= %i) { msg $chan $read(request.txt,%l) - Line %l | inc %l }

if request.txt is empty i want it to say in the channel No Requests. Not Not read or say anything else like In Resquesting Que there is.

thanks madness

#15097 13/03/03 03:37 PM
Joined: Jan 2003
Posts: 148
K
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
on 100:TEXT:!vrequest*:#:{
var %i = $lines(request.txt)
if (%i == 0) { msg $chan No Requests | halt }
.msg $chan In Resquesting Que There Is :-
var %l 1
while (%l <= %i) {
msg $chan $read(request.txt,%l) - Line %l
inc %l
}
}

#15098 13/03/03 07:15 PM
M
Madness
Madness
M
Displays This Error, With that coding

-
* /while: '&lt;=' unknown operator (line 6, script3.ini)
-

Any ideas ?

#15099 14/03/03 03:39 AM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
&lt; is HTML speak for the < symbol. Is your script trying to read from a HTML document by any chance?

#15100 14/03/03 04:40 PM
Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
Presumably you copied the code from an automatic email sent by mIRC.com with the reply content? Just use the code as viewed directly through the forums instead of through the email.


Link Copied to Clipboard