mIRC Homepage
Posted By: Firebucket Tip - 15/12/08 08:30 AM
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
Posted By: _Memo Re: Tip - 15/12/08 09:52 AM
Can you provide code or do you expect us to read your mind to figure this one out?
Posted By: genius_at_work Re: Tip - 15/12/08 02:48 PM
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
Posted By: sparta Re: Tip - 15/12/08 04:44 PM
//noop $tip(test,this one,working,15,,,echo,$wid)

the 15 is the time out, the rest you can figure out.. smile
Posted By: RusselB Re: Tip - 15/12/08 11:17 PM
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.
Posted By: Firebucket Re: Tip - 16/12/08 09:55 AM
Ah, Thanks very much.
Posted By: Firebucket Re: Tip - 16/12/08 09:57 AM
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
Posted By: sparta Re: Tip - 16/12/08 10:56 AM
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.
Posted By: Firebucket Re: Tip - 16/12/08 11:39 AM
My apologies smile
© mIRC Discussion Forums