Problem with GetPlayerID
#4

pawn Код:
stock GetPlayerID(Name[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
        new pName2[MAX_PLAYER_NAME];
        GetPlayerName(i, pName2, sizeof(pName2));
            if(!strcmp(Name, pName2))
            {
                return i;
            }
        }
    }
    return -1;
}
Try this.
Reply


Messages In This Thread
Problem with GetPlayerID - by bijoyekuza - 18.03.2011, 09:44
Re: Problem with GetPlayerID - by ricardo178 - 18.03.2011, 09:46
Re: Problem with GetPlayerID - by bijoyekuza - 18.03.2011, 09:48
Respuesta: Problem with GetPlayerID - by Sandman-x - 18.03.2011, 10:02

Forum Jump:


Users browsing this thread: 1 Guest(s)