AddToStringTable Function

Adds a string to a given string table.

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

Parameters

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.

Errors

Invalid string table index.