[Ajuda] ChatІ
#1

Eae galera to criando segundo tуpico ae mals mais o outro ficou na pag 3 e ngm vai ver vim aki pedir suas ajuda para poder arrumar um bug tipow quando o player digita ! [Texto] So aparece para ele mais nгo aparece para outros menbros da torcida por que sera alguem me ajuda ae porfavor 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;
}
Reply
#2

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[playerid])
                {
                   SendClientMessage(i, COLOR_TVP, String);
                   return 0;
                }
            }
        }
    }
    return 0;
}
Reply
#3

Tenta trocar

pawn Код:
if(VarTorcida[i] == Torcida[i])
por

pawn Код:
if(PlayerInfo[i][pTorcida] == 1)
Reply
#4

Quote:
Originally Posted by Pedro_Miranda
Посмотреть сообщение
Tenta trocar

pawn Код:
if(VarTorcida[i] == Torcida[i])
por

pawn Код:
if(PlayerInfo[i][pTorcida] == 1)
Assim
pawn Код:
if(VarTorcida[i] == Torcida[playerid])
Reply
#5

ja foi resolvido por msn....
Reply
#6

Nгo deu certo nem aparece a msg com PlayerInfo ajuda --'
Reply
#7

OMG RESOLVIDO OU NГO? SE NГO TENTE OQUE O Pedro_Miranda MOSTROU

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(PlayerInfo[i][pTorcida] == 1)
               {
                   SendClientMessage(i, COLOR_TVP, String);
                   return 1;
                }
            }
        }
    }
    return 0;
}
Reply
#8

Nгo deu certo eu e meu amg foi testar n deu . Se o ID 0 Fala ele ve a msg do outro player mais outro player n ve a msg , ajudem ae
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)