Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
nikitis
Beginner


Joined: 01 Mar 2007
Posts: 18

PostPosted: 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
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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}
Reply with quote
nikitis
Beginner


Joined: 01 Mar 2007
Posts: 18

PostPosted: Wed Dec 10, 2008 8:19 pm   
 
I fixed it
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net