Jump to content

Loop and sequence


Recommended Posts

I've got this code (example):

local tablee =
{
["a"] = {5443.0},
["b"] = {5443.0},
["c"] = {5443.0},
["d"] = {5443.0}
}
 
addEventHandler("onResourceStart", getResourceRootElement(),
function()
for txt in pairs(tablee)
do
print(txt)
end
end
)

But the loop changes sequence of these texts :(

Shows:

a

d

c

b

but I want:

a

b

c

d

How to prevent this?

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...