native

ArrayFindString

Syntax

native ArrayFindString(Array:which, const item[]);

Description

Searches through the array and returns the index of the first occurence of
the specified string.

Parameters

which Array handle
item String to search for

Return

Array index on success, -1 if the string can't be found

Error

Invalid handle.