Thread
:
Referencing variables dynamically..
View Single Post
#
1
01-08-2011, 10:11 PM
12171217
Banned
Join Date: Jan 2009
Posts: 453
Referencing variables dynamically..
How can I reference a variable based on a string with it's name in it?
I can do:
PHP Code:
object
=
"player"
;
var =
"x"
;
player
.
chat
= (@
object
).(@var);
but I can't do:
PHP Code:
var =
"mousex"
;
player
.
chat
= (@var);
Any ideas?
12171217
View Public Profile
View GraalOnline Profile
Find all posts by 12171217