Got a little confused with the for stuff but if anyone else needs this code and is easily confused by a three letter word, i used the same concept with repeat
Code:
local count = 1
repeat
Server:SendMessage("")
Server:SendMessage("# keyname: " .. iniFile:GetKeyName(count), Player)
Server:SendMessage("* value2: " .. iniFile:GetValue(iteminiFile:GetKeyName(count), "value1"), Player)
Server:SendMessage("* value2: "..iniFile:GetValue(iteminiFile:GetKeyName(count), "value2"), Player)
count = count + 1
until count == iteminiFile:GetNumKeys()