FindTeamByName

Last Updated2007-10-21
Created At2007-10-21

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.

stock int FindTeamByName(const char[] name)

Parameters

const char[] name
Partial or full team name.

Return Value

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