View Single Post
  #1  
Old 01-08-2011, 10:11 PM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
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?
Reply With Quote