[Ajuda] GetPlayerID dando erro
#4

Nгo sei estб certo, fiz o cуdigo por aqui mesmo.
pawn Код:
stock GetPlayerID(const parte_nome[]) {
    for(new i; i <= GetMaxPlayers(); i++) {
        if(!IsPlayerConnected(i)) continue;
        new ni[MAX_PLAYER_NAME];
        GetPlayerName(i, ni, sizeof(ni));
        if(strfind(ni, parte_nome, false) > -1)
            return i;
    }
    return INVALID_PLAYER_ID;
}
Testa ai, tenta ver se funciona.
Reply


Messages In This Thread
GetPlayerID dando erro - by standart - 17.12.2013, 23:49
Re: GetPlayerID dando erro - by DrTHE - 17.12.2013, 23:54
Re: GetPlayerID dando erro - by standart - 18.12.2013, 00:02
Re: GetPlayerID dando erro - by Locky_ - 18.12.2013, 00:53

Forum Jump:


Users browsing this thread: 1 Guest(s)