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, int block)

Parameters

Handle array

Array Handle.

const char[] item

String to search for

int block

Optionally which block to search in

Return Value

Array index, or -1 on failure

Errors

Invalid Handle