mIRC Home    About    Download    Register    News    Help

Topic Options
#207401 - 15/12/08 08:30 AM Tip
Firebucket Offline
Nutrimatic drinks dispenser

Registered: 06/08/08
Posts: 6
Hi,
Whenever I script a $tip(), I always get 1 Unknown Command in my status window.
I really, really have no idea what this means, and I don't know how to fix it.
Sorry if I seem like a mIRC scripting noob, I really enjoy mIRC scripting smile

Firebucket

Top
#207402 - 15/12/08 09:52 AM Re: Tip [Re: Firebucket]
_Memo Offline
Babel fish

Registered: 28/09/08
Posts: 62
Can you provide code or do you expect us to read your mind to figure this one out?

Top
#207403 - 15/12/08 02:48 PM Re: Tip [Re: Firebucket]
genius_at_work Offline
Hoopy frood

Registered: 08/10/05
Posts: 1741
Without any other information, I'll assume that you are trying to use $tip on its own, without a command. You need to use it like this if you don't want to use the result for anything:

/noop $tip(...)


-genius_at_work

Top
#207405 - 15/12/08 04:44 PM Re: Tip [Re: _Memo]
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
//noop $tip(test,this one,working,15,,,echo,$wid)

the 15 is the time out, the rest you can figure out.. smile
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#207407 - 15/12/08 11:17 PM Re: Tip [Re: sparta]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
From the help file under $tip
Quote:
Returns Nth position of tip if it was successfully created, zero if not.

Therefore if it is the first tip, it returns 1, and without the /noop mIRC tries to send the 1 as a command.

So adding the /noop should solve the problem you reported.

Top
#207426 - 16/12/08 09:55 AM Re: Tip [Re: RusselB]
Firebucket Offline
Nutrimatic drinks dispenser

Registered: 06/08/08
Posts: 6
Ah, Thanks very much.

Top
#207427 - 16/12/08 09:57 AM Re: Tip [Re: _Memo]
Firebucket Offline
Nutrimatic drinks dispenser

Registered: 06/08/08
Posts: 6
Quote:
Can you provide code or do you expect us to read your mind to figure this one out?


You don't have to be so rude, and secondly, you shouldn't need code, as it was a general question

Top
#207428 - 16/12/08 10:56 AM Re: Tip [Re: Firebucket]
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
No one is rude, the problem is that many asking questions here, then they don't show the code they have problem with. it's like walk in to a mechanic "whats wrong with my car", then not bring the car. and if you have been trying the code you have, and it bring a error it would be easier for us to locate the error in it if we see it. now we pasted a working string, and you still have the error in your code.
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#207429 - 16/12/08 11:39 AM Re: Tip [Re: sparta]
Firebucket Offline
Nutrimatic drinks dispenser

Registered: 06/08/08
Posts: 6
My apologies smile

Top