Quote:
Originally Posted by Crow
If you still want to use client.vars, do the following:
PHP Code:
( @ client.var).func();
|
Wrong.
PHP Code:
client.(@var @ "_propersyntax").(@subvar @ "_isawesome").(@etc)
To call a function from a string, this would be best:
PHP Code:
temp.weapon_name = "myWeapon";
temp.function_name = "myFunction";
// Weapon based on string
(@temp.weapon_name).myFunction(param1, param2, etc);
// Function based on string
myWeapon.(@temp.functon_name)(param1, param2, etc);
// Weapon AND function based on string
(@temp.weapon_name).(@temp.function_name)(param1, param2, etc);
Threw in some extra examples.
