xXMADEXx Posted October 27, 2013 Posted October 27, 2013 In Lua they are called tables. local myTable = { { 1, 2, 3 }, { "ready", "set", "go" }, }
-stolka- Posted October 27, 2013 Author Posted October 27, 2013 thanks, i din't know if i write group = {} group[1] = "pluto" is it correct? second question... does the start counting from 0 or 1?
ixjf Posted October 27, 2013 Posted October 27, 2013 Yes, that is correct. Tables start at index 1 in Lua, but 0 is valid as well.
ixjf Posted October 27, 2013 Posted October 27, 2013 http://www.lua.org/pil/4.3.2.html http://www.lua.org/pil/4.3.3.html http://www.lua.org/pil/4.3.4.html http://www.lua.org/pil/4.3.5.html
Moderators Citizen Posted October 27, 2013 Moderators Posted October 27, 2013 Common stolka ! This is related to Lua programming and not MTA Scripting, you can find everything on google.
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