KeyValues.GetString Method

Retrieves a string value from a KeyValues key.

void GetString(const char[] key, char[] value, int maxlength, const char[] defvalue)

Parameters

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.