Msypon Posted January 9, 2013 Share Posted January 9, 2013 Whats the diference between this simbol "^" and this simbol "*"? Link to comment
Castillo Posted January 9, 2013 Share Posted January 9, 2013 They both have different mathematical functions. Link to comment
Msypon Posted January 9, 2013 Author Share Posted January 9, 2013 Ok ty, could you explain this simbol "_" too? Why this simbol is before a variable? Like this _onPlayerSpawn Link to comment
Castillo Posted January 9, 2013 Share Posted January 9, 2013 It's the same as any other letter. Link to comment
Msypon Posted January 9, 2013 Author Share Posted January 9, 2013 Ok thx for your help Link to comment
Anderl Posted January 9, 2013 Share 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 Link to comment
Msypon Posted January 9, 2013 Author Share Posted January 9, 2013 Thx for this Andrei Link to comment
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