GetStringTableData

Last Updated2020-04-14
Created At2007-07-15

Retrieves the user data associated with a given string index.

native int GetStringTableData(int tableidx, int stringidx, char[] userdata, int maxlength)

Parameters

int tableidx
A string table index.
int stringidx
A string index.
char[] userdata
Buffer to store the user data. This will be set to "" if there is no user data
int maxlength
Maximum length of string buffer.

Return Value

int Number of bytes written to the buffer (binary safe, includes the null terminator).

Error

Invalid string table index or string index.