Hey guys,
i'm looking at my code and don't see why it doesn't behave like i thought it should.
Code:
local buffList = {
[1] = { id = "5171", name = "Slice and Dice" },
}
local function whoa_showBuff(id)
for _,v in pairs(buffList) do
print(v.id.."=="..id.."?")
if (v.id == id) then
print("yes")
return true
else
print("no")
end
end
return false
end
And the logging looks like...
Code:
5171==2823?
no
5171==5171?
no
What stupid mistake did i do?
Thanks in advance!
whoa