|
nikitis Beginner
Joined: 01 Mar 2007 Posts: 18
|
Posted: Wed Dec 10, 2008 2:34 pm
named arguments |
Isn't zscript suppose to create local variables on the fly?
bp($item)
Put $item in backpack
invalid local veriable
What am I missing? I |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Dec 10, 2008 3:27 pm |
Show us the XML of your alias (or the exact zScript command to create it) and exactly what you're typing on the command line. Without knowing what you're doing, we can't know what you're doing wrong.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Dec 10, 2008 4:34 pm |
CMUD won't create them "on the fly". You need to put the names of the arguments into the Arguments field at the bottom of the Alias panel. Or, if you are trying to define the alias from the command line, the correct syntax would be:
Code: |
#ALIAS bp($item) {put $item in backpack} |
|
|
|
|
nikitis Beginner
Joined: 01 Mar 2007 Posts: 18
|
Posted: Wed Dec 10, 2008 8:19 pm |
I fixed it
|
|
|
|
|
|