mIRC Homepage
Posted By: AaronL unknown command at alias - 14/05/06 07:13 PM
Hi all.
Something strange happened.
i have this alias in remote
Code:
alias checkops {
/msg #theroom just testing
}

and i call that alias with something like
if (%pasword == %control) { checkops | if (% etc. etc.
i get the error:
CHECKOPS Unknown command

who knows why?

Greetz
Aaron
Posted By: MikeChat Re: unknown command at alias - 14/05/06 08:25 PM
a lot of things can casue this, one is to put that alias checkops in aliases rather than remotes (thinking you were in the right place)

other things can include mis-spelling it in one place or the other

like

alias chkops
alas checkops

or having it right in the alias
but different in the if or command statement
Posted By: Im2good4u Re: unknown command at alias - 14/05/06 08:25 PM
u probely got 1 } to much so the script closes itself before it gets yo your alias (if your alias is lower in the script then that other line)
Posted By: AaronL Re: unknown command at alias - 15/05/06 04:53 PM
mikechat: the alias was correct written smile

im2good4u: you have probably right, but i can't find the missing bracket. }
Is it possible that the closing bracket is in another file? ( i have several)
In that case i've got alot of work to do frown

Greetz
Aaron
Posted By: landonsandor Re: unknown command at alias - 15/05/06 05:17 PM
Ok, things to check (or double check):

1) check brackets and see they're spaced right (with the {} button) in the proper file that has the alias (you can have mirc do a "search all file" for it in the popups/remotes/alias section)
2) something else to consider:

alias checkops{
alias checkops {

Those two above are NOT the same thing. The first alias is called checkops{ where the second one is called checkops. In the case of the FIRST name, there IS a { there but it's not recognized by mirc.

Hope that helps
Posted By: Im2good4u Re: unknown command at alias - 15/05/06 07:33 PM
no it can only be in your file not in other files they wil get thier own errors if they are wrong
Posted By: Othello Re: unknown command at alias - 15/05/06 08:11 PM
it could be a miss placed ( or ) or , that is only affecting that one part of the script to give you that error
Posted By: AaronL Re: unknown command at alias - 16/05/06 07:57 PM
problem solved.
it was a missing close bracket.

Thank you all voor your help.
i know now aswell that i just have to searched the file with the error smile saves alot of work indeed.

Greetz
Aaron
© mIRC Discussion Forums