mIRC Home    About    Download    Register    News    Help

Print Thread
#61792 25/11/03 03:38 PM
Joined: Sep 2003
Posts: 24
I
Iceflow Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Sep 2003
Posts: 24
When I use this script i get a message saying: /if: invalid format

This is exactly how my script is written without using the xdcc bot names:
Code:
 On *:notify: if $nick == <bot> { msg $nick xdcc send #2 } | elseif $nick <bot> { msg $nick xdcc send #2 } | else $nick <bot> { msg $nick xdcc send #1 } 
 


Anyone know why I might be getting that message?

#61793 25/11/03 03:43 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
elseif $nick <bot> { msg $nick xdcc send #2 }
Here you want:
elseif $nick == <bot> { msg $nick xdcc send #2 }

else $nick <bot> { msg $nick xdcc send #1 }
Here you want either:
else { msg $nick xdcc send #1 }
-or-
elseif $nick == <bot> { msg $nick xdcc send #1 }

#61794 25/11/03 04:30 PM
Joined: Sep 2003
Posts: 24
I
Iceflow Offline OP
Ameglian cow
OP Offline
Ameglian cow
I
Joined: Sep 2003
Posts: 24
Hey Thanks for that. It works perfectly now


Link Copied to Clipboard