im working on a script where i need to store data like "amount" "x" "y" "z" to a numeric table.
i made this code
retrievers = 10
function InitialSpots()
for i = 1, retrievers do
retSpots[i] = {}
retSpots[i]["amount"] = {}
for k = 1, retrievers do
retSpots[i].amount[1] = 0
end
end
[size=4]end[/size]
now i can adress the amount of field 5 with
retSpots[5].amount[1]
i think there is a way to create it so that i can just use :
retSpots[5].amount
Thankfull for any Tipp