numbers = {1,2,3,4,5,6,7,8,9}
for i = 1, 9, 1 do
objectselect = tonumber(numbers[i])
item[objectselect].image = "YAY.png";
end
end
Example code.
How do I use a variable in a table?
table[variable].x = 5; [import]uid: 49300 topic_id: 14035 reply_id: 314035[/import]