[Ajuda] Chat
#1

Eae tipow o chat esta bugado quando escreve aparece a msg para ele mais para os outros menbros da torcida nao aparece pq sera cуdigo:
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == '!')
    {
        if(PlayerInfo[playerid][pTorcida] == 1)
        {
        new Nome[24], String[128];
        GetPlayerName(playerid, Nome, sizeof(Nome));
        format(String, sizeof(String), "[Chat Gaviхes da Fiel] %s : %s", Nome, text[1]);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(VarTorcida[i] == Torcida[i])
            {
                SendClientMessage(i, COLOR_TVP, String);
                return 0;
            }
        }
    }
    }
    return 1;
}
Alguem me ajuda ae por favor
Reply
#2

Tente:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(VarTorcida[playerid] != Torcida[i]) continue;            
           
            SendClientMessage(i, COLOR_TVP, String);
            return 0;            
        }
Reply
#3

Nгo deu certo vey alguem poderia me ajudar ae pf
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)