AddToStringTable Function

Adds a string to a given string table.

void AddToStringTable(int tableidx, const char[] str, const char[] userdata, int length)


int tableidx

A string table index.

const char[] str

String to add.

const char[] userdata

An optional user data string.

int length

Length of user data string. This should include the null terminator. If set to -1, then user data will be not be altered if the specified string already exists in the string table.


Invalid string table index.