SetStringTableData Function

Sets the user data associated with a given string index.

int SetStringTableData(int tableidx, int stringidx, const char[] userdata, int length)


int tableidx

A string table index.

int stringidx

A string index.

const char[] userdata

User data string that will be set.

int length

Length of user data string. This should include the null terminator.

Return Value

Number of bytes written to the buffer (UTF-8 safe).


Invalid string table index or string index.