mIRC Home    About    Download    Register    News    Help

Print Thread
#191891 17/12/07 06:19 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I have some problem with the code below, it return -> 1 Unknown command , but i cant find anything that would return this error, someone that have any ideas
Code:
//echo -a $tip(test,test,test,10,$qt($mircdirsystem\images\icons\info.ico),,echo,$wid)


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #191894 17/12/07 07:37 PM
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Well, this line (with a change of icon file name) works perfectly fine for me.

If you did $tip() without the echo (or a noop), then it'd cause what you're saying.

Bekar #191896 17/12/07 08:38 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
.echo -q return no error for me, but echo -a does..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #191904 17/12/07 10:49 PM
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
For all intent and purpose, your command is echo -a 1. This is a no-argument echo to the active window in color 1, thus your error.

sparta #191916 18/12/07 01:27 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Unless there is some reason you need to echo something when using $tip, use /noop instead.

Code:
noop $tip(test,test,test,10,$qt($mircdirsystem\images\icons\info.ico),,echo,$wid)


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard