[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
#2

Thanks a bunch for that, ******. Works a treat.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)