mIRC Home    About    Download    Register    News    Help

Print Thread
#8534 27/01/03 11:43 AM
Joined: Jan 2003
Posts: 8
J
jstyles Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Jan 2003
Posts: 8
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,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
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
Joined: Jan 2003
Posts: 10
L
Pikka bird
Offline
Pikka bird
L
Joined: Jan 2003
Posts: 10
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


[irc://irc.mircx.com:6667/] - #Scripts, #Gmforum.cjb.net
#8537 29/01/03 01:50 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
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.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#8538 30/01/03 03:24 AM
Joined: Jan 2003
Posts: 8
J
jstyles Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Jan 2003
Posts: 8
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