08-26-2015, 10:45 PM
Hi!
I wanted to have a .ini file that will controll my fraction-like plugin
but i cant add a new key to the ini file, while my code seems ok.
I can read a value from a key, but cannot add a key or value.
Actual code is:
I wanted to have a .ini file that will controll my fraction-like plugin
but i cant add a new key to the ini file, while my code seems ok.
I can read a value from a key, but cannot add a key or value.
Actual code is:
Code:
local IniFile = cIniFile();
if (IniFile:ReadFile("fractionlist.ini")) then
key= IniFile:AddKeyName("hi")
IniFile:AddValue(IniFile:GetKeyName(key), "Value1", "32")
end