mIRC Home    About    Download    Register    News    Help

Print Thread
#149161 14/05/06 07:13 PM
Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
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


Deridio fatum
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
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

Joined: Sep 2005
Posts: 116
I
Vogon poet
Offline
Vogon poet
I
Joined: Sep 2005
Posts: 116
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)

Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
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


Deridio fatum
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
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


Those who fail history are doomed to repeat it
Joined: Sep 2005
Posts: 116
I
Vogon poet
Offline
Vogon poet
I
Joined: Sep 2005
Posts: 116
no it can only be in your file not in other files they wil get thier own errors if they are wrong

Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
it could be a miss placed ( or ) or , that is only affecting that one part of the script to give you that error




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
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


Deridio fatum

Link Copied to Clipboard