Pegar o ID atravйs do nъmero
#4

pawn Code:
stock GetPlayerNumber(numero)
{
    for(new i = 0; i <= MAX_PLAYERS; ++i)
    {
        if(numero == PlayerInfo[i][numero])
        {
            new tnome[MAX_PLAYER_NAME];
            GetPlayerName(i, tnome, sizeof(tnome) );
            return GetPlayerID(tnome);
           /* if(strcmp(tnome, i, true, strlen(i)) == 0)
            {
                return i;
            }*/

        }
    }
    return INVALID_PLAYER_ID;    //ID Invбlido
}
precisa dessa include: http://upl.vs-hs.com/d/a79f0fc58c1ad...d67e97dc1bfa2/
Reply


Messages In This Thread
Pegar o ID atravйs do nъmero - by Ricop522 - 09.03.2011, 19:33
Re: Pegar o ID atravйs do nъmero - by SergioBr - 09.03.2011, 20:00
Re: Pegar o ID atravйs do nъmero - by Ricop522 - 09.03.2011, 20:10
Re: Pegar o ID atravйs do nъmero - by leandro123456 - 09.03.2011, 20:17
Re: Pegar o ID atravйs do nъmero - by Ricop522 - 09.03.2011, 20:24
Re: Pegar o ID atravйs do nъmero - by leandro123456 - 09.03.2011, 20:29

Forum Jump:


Users browsing this thread: 1 Guest(s)