-stolka- Posted October 27, 2013 Posted October 27, 2013 which is the sintax of the array? CAOS RP SKYPE: stolka.caosrp CONNECT to CAOS RP
xXMADEXx Posted October 27, 2013 Posted October 27, 2013 In Lua they are called tables. local myTable = { { 1, 2, 3 }, { "ready", "set", "go" }, } The Ultimate Lua Tutorial! | MTA PHP SDK
-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? CAOS RP SKYPE: stolka.caosrp CONNECT to CAOS RP
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. I used to know how to code, but then I took an arrow in the knee. Project Redivivus - Remaking Old School MTA With New Code MTA 0.6 Nightly 1 released
-stolka- Posted October 27, 2013 Author Posted October 27, 2013 wich is the sintax of the cycles? CAOS RP SKYPE: stolka.caosrp CONNECT to CAOS RP
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 I used to know how to code, but then I took an arrow in the knee. Project Redivivus - Remaking Old School MTA With New Code MTA 0.6 Nightly 1 released
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. The rEvolution is coming ...
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