Posted 22 November 2013 - 06:20 PM
Hi everyone!
first of, here's my code (its not big, i'm testing many things):
The point of this lines is to know IDs (think you understood it). But! it returns:
instead of (or, i want this)
Why does "White_Ink" come before "Paper"? Think i did a really little mistake but i don't find where ><
first of, here's my code (its not big, i'm testing many things):
local IDs = {Paper = {}, White_Ink = {}, Orange_Ink = {}}
function getIDs()
local event, ID = os.pullEvent("isort_item")
return ID
end
for i,j in pairs(IDs) do
IDs[i] = getIDs()
print(i.." "..IDs[i])
end
The point of this lines is to know IDs (think you understood it). But! it returns:
White_Ink 339
Paper 491871
Orange_Ink 459103
instead of (or, i want this)
Paper 339
White_Ink 491871
Orange_Ink 459103
Why does "White_Ink" come before "Paper"? Think i did a really little mistake but i don't find where ><