27.07.2009, 01:23
help me please, tell me: about ReturnUser
What do mean how to use, etc.
What do mean how to use, etc.
Originally Posted by kruts
help me please, tell me: about ReturnUser
What do mean how to use, etc. |
Originally Posted by kruts
up
|
Originally Posted by paytas
I tried to Search "ReturnUser", there are 13 pages of results.. I'm wondering how you use the search tool .
|
ReturnUser(name[])
{
new string[MAX_PLAYER_NAME];
for(new playerid; playerid < MAX_PLAYERS; playerid++)
{
GetPlayerName(playerid,string,sizeof(string));
if(strfind(string,name,true)>-1)return playerid;
}
return INVALID_PLAYER_ID;
}