KvGetString

Last Updated2014-11-08
Created At2007-03-25

Retrieves a string value from a KeyValues key.

native void KvGetString(Handle kv, const char[] key, char[] value, int maxlength, const char[] defvalue = "")

Parameters

KeyValues Handle.
const char[] key
Name of the key, or NULL_STRING.
char[] value
Buffer to store key value in.
int maxlength
Maximum length of the value buffer.
const char[] defvalue
Optional default value to use if the key is not found.

Return Value

void

Error

Invalid Handle.