--
[ Picked text/plain from multipart/alternative ]
Hi :)

I'm currently wrestling with KeyValues, all going well on the reading part
but having problems trying to write to the KeyValues file, namely I have no
idea how to create something new, for example consider what I have now.

"Users"
{
    "User"
    {
        "steamID"        "STEAM_ID_LAN"
        "stats"        "50"
    }
}

I can modify "steamID" and "stats", but I want to create another "User"
section I have no idea what to use, for example I want to-do this.

"Users"
{
    "User"
    {
        "steamID"        "STEAM_ID_LAN"
        "stats"        "50"
    }
    "User"
    {
        "steamID"        "STEAM_ID_RAWR"
        "stats"        "25"
    }
}

bool BBStat::createNewPlayerStat(CBasePlayer *pPlayer)
{
   if (!Q_stricmp(root->GetName(), "Users"))
    {
    }
}

Thanks for your time.
- Benjamin Davison
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to