Thank you both for your responses... Now i'm having issues with this... actually working.
local MachinesArray = {}
MachinesArray[1] = {printName = "Reactor",scriptName = "BigReactors-Reactor",MacType = "Big_Reactors"}
MachinesArray[2] = {printName = "Harvester",scriptName = "harvester",MacType = "MineFactory_Reloaded"}
function findPeripherals()
for i = 1, #MachinesArray do
for key,value in pairs(MachinesArray[i]) do
print("MName: "..MachinesArray[i].printName.."| SName: "..MachinesArray[i].scriptName.."| Mod:"..MachinesArray[i].MacType)
end
end
end
So.. it's listing total number of entries (6) rather then i assumed it would do how many entries before sub tables(2) is there an easy way to do a loop specifically for the uhh... "starts" i went this to list only MachinesArray[1] and [2] but it list a total of 6 times because all the entries within the subtables.