mIRC Home    About    Download    Register    News    Help

Print Thread
#8534 27/01/03 11:43 AM
J
jstyles
jstyles
J
I'm currently making an alias which is now up to 140 lines or so that basically formats one file after another. The problem is that when it gets to a certain file one my /goto calls doesn't work - it says the the name isn't found. The same /goto line was utilized in some of the previous files that the alias worked with, so it seems to be unique to something in this one file. I don't really see how I can debug this, I changed the name and moved it around a little, but to no success.

Anyone have any ideas?

#8535 27/01/03 12:02 PM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
I would suggest that you eityher paste the alias here or link to a text file on your website containing the alias. That way those that know such things can do a 'fault find' for you.

#8536 29/01/03 01:31 AM
L
LTK_sNiPe
LTK_sNiPe
L
Well.. Make sure that the command to goto is in the same code, for instance:
Code:
 alias blah {
msg $active You just said blah!
goto saidblah
:saidblah echo You just said blah
}
That would work... But something like this wouldn't:
Code:
 alias blah {
msg $active You just said blah!
goto saidblah
}
:saidblah echo You just said blah 
Well, i'm not sure if this helped, but it was worth a try.. Good luck

#8537 29/01/03 01:50 PM
Joined: Dec 2002
Posts: 1,253
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,253
The echo command would go on the line following the :label, not on the same line. And it does sound to me like he's trying to goto a label that's not in the same alias/event/popup code...or trying to use goto on a timer, which will also generate that message.

#8538 30/01/03 03:24 AM
J
jstyles
jstyles
J
Well, I guess I worked around it. It seems it was having trouble finding the label in a nested if statement a few dozen lines above the call. I set a temp variable, /goto'd a place near the beginning of the alias, and if the variable was set I unset it and /goto'd where I originally wanted to go.


Link Copied to Clipboard