mIRC Home    About    Download    Register    News    Help

Print Thread
on error #160599 28/09/06 05:38 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
i have this:

on 1:error:Closing*Link* { haltdef | here comes custom display }

but whenever i get error

i get server side error msg
and my custom displayed...

nor halt nor haltdef works.
why?


IceCapped
Re: on error #160600 28/09/06 05:59 PM
Joined: Feb 2006
Posts: 164
V
vexed Offline
Vogon poet
Offline
Vogon poet
V
Joined: Feb 2006
Posts: 164
on ^*:ERROR:*.*:{ echo -a $timestamp $2- | halt }

Re: on error #160601 28/09/06 06:00 PM
Joined: Sep 2003
Posts: 261
S
Scorpwanna Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
I'm surprised you got that far, when ever I would try on *:error, i never would get anything. I just figured it was some old on event that never worked frown. Try a period infront of haltdef.


We don't just write the scripts, we put them to the test! (ScriptBusters)
Re: on error #160602 28/09/06 06:11 PM
Joined: Feb 2006
Posts: 164
V
vexed Offline
Vogon poet
Offline
Vogon poet
V
Joined: Feb 2006
Posts: 164
It's always worked for me. smirk

Re: on error #160603 28/09/06 06:19 PM
Joined: Feb 2006
Posts: 164
V
vexed Offline
Vogon poet
Offline
Vogon poet
V
Joined: Feb 2006
Posts: 164
Code:
on ^*:ERROR:*.*:{ if (closing link isin $1-) { echo -s closing link to server fool | halt }  


Could do it like that, it does work.

Re: on error #160604 28/09/06 06:19 PM
Joined: Sep 2003
Posts: 261
S
Scorpwanna Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Heh, i've always assumed to use what the help file says. That may be why it's never worked.
on 1:ERROR:*server full*:/echo Try another server!

Khaled really should update the help file.


We don't just write the scripts, we put them to the test! (ScriptBusters)
Re: on error #160605 28/09/06 06:30 PM
Joined: Feb 2006
Posts: 164
V
vexed Offline
Vogon poet
Offline
Vogon poet
V
Joined: Feb 2006
Posts: 164
It's quite funny actually, That example never worked for me either when i started a script several years ago, The i saw the example i gave you from a friend, and it's always worked. smirk

Re: on error #160606 28/09/06 09:15 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
ahh thanks very much, this works.

seems that help file sux in some examples :P


IceCapped