headache
#1
Code:
local iniFile = cIniFile("myfile.ini")
                if(iniFile:ReadFile()) then
                        local data = tonumber(iniFile:GetValue(Player:GetName(), "data"))
                        if(not data==true) then
                                Server:SendMessage("cant retrieve data", Player)
                        else
                                Server:SendMessage("data: "..iniFile:GetValue(Player:GetName(), "data"), Player)
                        end
                end
If it finds the key with the players name and value of data, it should output the data, otherwise output "cant retrieve data" right? or am i wrong? :S but either way its not working, it outputs fine if it finds the data, otherwise it doesnt do anything

heeeeeeelllppppp HuhHuh
Reply
Thanks given by:


Messages In This Thread
headache - by Tim - 03-05-2011, 06:29 AM
RE: headache - by Revolucas - 03-05-2011, 06:54 AM
RE: headache - by Tim - 03-05-2011, 07:13 AM
RE: headache - by FakeTruth - 03-05-2011, 07:43 AM
RE: headache - by Tim - 03-05-2011, 08:29 AM



Users browsing this thread: 1 Guest(s)