Msypon Posted January 9, 2013 Posted January 9, 2013 Whats the diference between this simbol "^" and this simbol "*"?
Castillo Posted January 9, 2013 Posted January 9, 2013 They both have different mathematical functions.
Msypon Posted January 9, 2013 Author Posted January 9, 2013 Ok ty, could you explain this simbol "_" too? Why this simbol is before a variable? Like this _onPlayerSpawn
Anderl Posted January 9, 2013 Posted January 9, 2013 * 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now