Quote:
Originally Posted by BroZeus
like this use these stocks--
pawn Код:
stock Name(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); return name; }
stock CkeckUserNum(const text[]) { new m, i, c; foreach(Player : i) { m = strfind(Name(i), text, true); if(m != -1) c++; } if(m > 1)return true;//more than 1 user return false; }
//in the command like this
if(CheckUserNum(PART_OF_NAME_TO_SEARCH))return SendClientMessage(playerid, -1, "{ff0000}More than 1 user found please be more specific");
|
but there is feature in sscanf for it already