FindTeamByName Function

Given a partial team name, attempts to find a matching team.

The search is performed case insensitively and only against the first N characters of the team names, where N is the number of characters in the search pattern.

int FindTeamByName(const char[] name)

Parameters

const char[] name

Partial or full team name.

Return Value

A valid team index on success. -1 if no team matched. -2 if more than one team matched.