Jump to content

string problem


Recommended Posts

For every carhouse there would be createt an table where the names of the cars which you can buy in the carhouse are written

Let's try it with ElementData it offers more work space something like.

  
local ElementTable={} 
  
for i=1, carhouses, 1 do 
    local carhouse = createElement("car_house") 
    ElementTable[i]=carhouse 
end 
  

Then something like

  
for i=1, carhouses, 1 do 
  for car=1, cars, 1 do 
    local name = "car"..i.."" 
    setElementData( ElementTable[i],name,car_name_table[j]) 
end 
 end 
  
  

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...