|
Renegade Beginner
Joined: 25 Oct 2006 Posts: 14
|
Posted: Wed Dec 06, 2006 9:54 am
whats wrong with this picture |
I used to use a way to designate a target that i can not get to work now after the upgrade and it ate my settings.
This is what i THINK it was
#Alias t @target=%1
#Variable target <no comments>
all i get now is syntax error in the compiled code window
what did i do wrong? |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Wed Dec 06, 2006 10:04 am |
#Alias t target=%1
You assign variables with variable=val, not @variable=val
It was possible the 2nd way in zMUD, though not correct. It's only used in CMUD for indirect variable assignment, which it doesn't look like you need here. |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Dec 06, 2006 10:08 am |
CMud is much more strict about syntax then zMud was. First you should use braces correctly around the script parameter for the #ALIAS. Second using an @variable is generally not what you want when assigning a value to a variable.
#ALIAS t {target=%1} |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|