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
Opoponax
Beginner


Joined: 16 Sep 2008
Posts: 20

PostPosted: Fri Sep 19, 2008 3:09 am   

Quick variable creation question.
 
What would be the proper syntax for creating a local variable within an event/alias off a parameter pointing to a different variable? Normal syntax would be...

$var=@variable

But I'm looking to do something similar to...

$var=@%1

Tried a bunch of combinations and variations, just can't quite seem to make it happy. Something that Dot Notation would work on as well.

Thanks!
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Sep 19, 2008 10:31 am   
 
$var=@{%1}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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