FindStringInArray Function

Returns the index for the first occurrence of the provided string. If the string cannot be located, -1 will be returned.

int FindStringInArray(Handle array, const char[] item)


Handle array

Array Handle.

const char[] item

String to search for

Return Value

Array index, or -1 on failure


Invalid Handle