Thread: client. format
View Single Post
  #3  
Old 09-22-2009, 02:50 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Crow View Post
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(param1param2etc);
// Function based on string
myWeapon.(@temp.functon_name)(param1param2etc);
// Weapon AND function based on string
(@temp.weapon_name).(@temp.function_name)(param1param2etc); 
Threw in some extra examples.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote