Jump to content

Simbol


Msypon

Recommended Posts

* is multiply, ^ is power.

Example:

print( 2 * 2 ); -- 4 
  
print( 2 ^ 3 ); -- 8; 

"_" can be used for much things, but it's still a character like others. You can for example write "_" instead of a variable name in the middle of the parameters of the functions if you don't need it or when creating wrappers:

--Function parameters example: 
addEventHandler( "onClientPlayerWeaponFire", root, 
    function( p_Weapon, _, _, _, _, _, p_Element ) --look here 
        --some code 
    end 
) 
  
--Wrappers: 
_createObject = createObject; 
function createObject( ... ) 
    --some code 
    return _createObject( ... ); 
end 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...