MTA Team qaisjp Posted May 24, 2011 MTA Team Posted May 24, 2011 1) Is hm = { jaja = "hi" } the same as hm = { ["jaja"] = "hi" } 2) will hm ={ jaja = "jo" } function lolo()if hm.jaja == hm["jaja"] then return true end end return true?
Castillo Posted May 24, 2011 Posted May 24, 2011 hm ={ jaja = "jo" } function lolo()if hm.jaja == hm["jaja"] then return true end end I have tested this and yes, indeed returns true.
MTA Team qaisjp Posted May 24, 2011 Author MTA Team Posted May 24, 2011 +1 that answers both questions. Thanks Cast
proracer Posted May 24, 2011 Posted May 24, 2011 Yes, also you can download Lua 5.1 for Windows and use the Lua Command line to help you testing stuff you wanna test quickly.
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