hey this is my first time working with keyvalues and its not working..
i need it to write a new section with the client's steamid but it doesn't
here's the code:
Code:
public OnClientAuthorized(client)
{
if (!FileExists(Path))
{
return;
}
GetClientAuthString(client, SteamID, sizeof(SteamID));
decl Handle:kv;
kv = CreateKeyValues("kills");
FileToKeyValues(kv, Path);
if (!KvJumpToKey(kv, SteamID, true))
{
CloseHandle(kv);
return;
}
CloseHandle(kv);
}
this is how my i want my file to look:
Code:
"kills"
{
"STEAM_0:0:1"
{
"killcount" "1"
}
}
any help would be much appreciated