Michael_Tuner Posted March 14, 2010 Share Posted March 14, 2010 What is an Argument in scripting. I never understood it correctly. How to Identify it for a script? How to disable nametags? How to set dxdrawtext to follow player? Link to comment
50p Posted March 14, 2010 Share Posted March 14, 2010 1. Parameter and argument have connections. Parameter is present in function definition whereas argument is present in function call. function foo( param1, param2 ) -- these are parameters print( param1, param2 ); end foo( 10, 300 ) -- 10 and 300 are arguments 2. https://wiki.multitheftauto.com/wiki/Set ... tagShowing 3. Try my ped example script https://community.multitheftauto.com/index.php?p= ... ils&id=234 It also gives the peds health bar (which is the same idea for dxDrawText). Link to comment
Michael_Tuner Posted March 14, 2010 Author Share Posted March 14, 2010 I didn't get the 1st one but second and 3 helped. How do we understand arguments? Link to comment
50p Posted March 14, 2010 Share Posted March 14, 2010 This is not just in Lua but every programming/scripting language http://en.wikipedia.org/wiki/Parameter_ ... science%29 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