[HELP] GetVariable(string[])
#1

Basically, I want to be able to do the following:

Код:
new test =124;

GetVariable(string[]) {
    return string;  // If string == "test", then I want this to return the value of the variable named "test" (i.e.,124)
}


new second =GetVariable("test"); // Where the 'second' variable now == 124.
Is this at all possible? And if so, how would it be achieved?
Reply


Messages In This Thread
[HELP] GetVariable(string[]) - by hayander - 09.06.2011, 08:47
Re: [HELP] GetVariable(string[]) - by hayander - 09.06.2011, 12:00

Forum Jump:


Users browsing this thread: 1 Guest(s)