Somebody can help for this function? AddKeyName
This not create the keyname [Playername]
Edit: I found the problem. You can not add the key if the file is present but empty.
PHP Code:
local UsersIni = cIniFile("users.ini")
if ( UsersIni:ReadFile() == true ) then -- Lit le fichier ini
UsersIni:AddKeyName(Player:GetName())
UsersIni:WriteFile()
return false
end
This not create the keyname [Playername]
Edit: I found the problem. You can not add the key if the file is present but empty.