-stolka- Posted October 27, 2013 Share Posted October 27, 2013 which is the sintax of the array? Link to comment
xXMADEXx Posted October 27, 2013 Share Posted October 27, 2013 In Lua they are called tables. local myTable = { { 1, 2, 3 }, { "ready", "set", "go" }, } Link to comment
-stolka- Posted October 27, 2013 Author Share 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? Link to comment
ixjf Posted October 27, 2013 Share Posted October 27, 2013 Yes, that is correct. Tables start at index 1 in Lua, but 0 is valid as well. Link to comment
-stolka- Posted October 27, 2013 Author Share Posted October 27, 2013 wich is the sintax of the cycles? Link to comment
ixjf Posted October 27, 2013 Share 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 Link to comment
Moderators Citizen Posted October 27, 2013 Moderators Share Posted October 27, 2013 Common stolka ! This is related to Lua programming and not MTA Scripting, you can find everything on google. 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