[Ajuda] Chat
#5

pawn Код:
public OnPlayerText(playerid, text[])
{
    new str[128];
    format(str, sizeof(str), "%s fala: %s", ReturnUser(Name), text[0]);
    for (new d = 0; r < MAX_PLAYERS; d++)
    {
        if(IsPlayerConnected(d))
        {
            if(IsPlayerInRangeOfPoint(d, 10.0, x, y, z))
            {
                SendClientMessage(d, -1, str);
                return 0; // ignorar o texto padrгo e enviar a uma mensagem  costumizada.
            }
        }
        return 0;
    }
    return 1;
}
faltando um return ali aonde deixei comentario .
Reply


Messages In This Thread
Chat - by xPaulistaa - 03.11.2012, 03:33
Re: Chat - by Bruno Bastos - 03.11.2012, 03:38
Re: Chat - by tonisantolia - 03.11.2012, 03:39
Re: Chat - by xPaulistaa - 03.11.2012, 03:39
Re: Chat - by Nill.Oliveira - 03.11.2012, 03:43
Re: Chat - by zSuYaNw - 03.11.2012, 03:45
Re: Chat - by HDTV - 03.11.2012, 04:49
Re: Chat - by Rodney Francalim - 03.11.2012, 10:51

Forum Jump:


Users browsing this thread: 2 Guest(s)