Emm
25-01-2007, 07:12 AM
I'm new to coding in lua and I have been stuck on this problem:
How do I use dynamic variables?
ex:
if the variable
X = Em
how do I make it so that
(the value of X) = 5
so that
Em = 5 ?
The value of X will change and i'm looking to store the 5 in whatever the value of X is. In php the way to do this is to use a double $$var which means the value of $var.
I know this is a simple question, but any help would be appreciated
How do I use dynamic variables?
ex:
if the variable
X = Em
how do I make it so that
(the value of X) = 5
so that
Em = 5 ?
The value of X will change and i'm looking to store the 5 in whatever the value of X is. In php the way to do this is to use a double $$var which means the value of $var.
I know this is a simple question, but any help would be appreciated