KvGetNameSymbol Function

Finds a KeyValues id inside a KeyValues tree.

bool KvGetNameSymbol(Handle kv, const char[] key, int &id)

Parameters

Handle kv

KeyValues Handle.

const char[] key

Key name.

int& id

Id of the found KeyValue.

Return Value

True on success, false if key not found.

Errors

Invalid Handle.