Zentharus Posted July 4, 2013 Share Posted July 4, 2013 I would like to know if instead of having guiSetFont(usernameLabel, "default-bold-small") guiSetFont(passwordLabel, "default-bold-small") If doing this would work as to make it shorter, guiSetFont(usernameLabel,passwordLabel "default-bold-small") Link to comment
iPrestege Posted July 4, 2013 Share Posted July 4, 2013 No it's not this is wrong use tables. Link to comment
Zentharus Posted July 4, 2013 Author Share Posted July 4, 2013 Ahh, i didn't know sorry, thanks Link to comment
Zentharus Posted July 4, 2013 Author Share Posted July 4, 2013 If im not mistaking, would it be somethig like this? t = { passwordLabel, usernameLabel } guiSetFont(t, "default-bold-small") Link to comment
Zentharus Posted July 4, 2013 Author Share Posted July 4, 2013 Sorry, im a bit new to this, what do you mean by that? Link to comment
iPrestege Posted July 4, 2013 Share Posted July 4, 2013 local vTable = { passwordLabel, usernameLabel } for _,v in ipairs ( vTable ) do guiSetFont ( v,'default-bold-small' ) end Try it and tell me the results! 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