AddToStringTable

Last Updated2021-06-24
Created At2007-07-15

Adds a string to a given string table.

native void AddToStringTable(int tableidx, const char[] str, const char[] userdata = "", int length = -1)

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.

Return Value

void

Error

Invalid string table index.