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

To tentando fazer isso /\
Sу que nгo tб funcionando.

pawn Code:
stock GetPlayerNumber(numero)
{
    for(new i = 0; i <= MAX_PLAYERS; ++i)
    {
        if(PlayerInfo[i][numero])
        {
            new tnome[MAX_PLAYER_NAME];
            GetPlayerName(i, tnome, sizeof(tnome) );
            if(strcmp(tnome, i, true, strlen(i)) == 0)
            {
                return i;
            }
        }
    }
    return INVALID_PLAYER_ID;    //ID Invбlido
}
Ty pra quem me ajudar.
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)