SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 17/09/2012, 06:58 PM   #1
Lord_Style
Banned
 
Join Date: Sep 2012
Posts: 86
Reputation: 2
Default Chat Próximo

Problema:

Eu desenvolvi este xat para aparecer de perto, mas não esta aparecendo oque o player esta falando, somente quando o player esta sozinho ele funciona, mas quando esta mais de 1 jogador online ele não aparece a fala!

Código:

pawn Code:
public OnPlayerText(playerid, text[])
{
    new Float:Pos[3],string[128],Nome[24];
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
    format(string, 128, "%s diz: %s", Nome, text);
    SetPlayerChatBubble(playerid, text, -1, 100.0, 10000);
    for(new i; i != GetMaxPlayers(); i++)
    {
        if(IsPlayerInRangeOfPoint(i, 10, Pos[0], Pos[1], Pos[2]))
        {
            SendClientMessage(i, -1, string);
        }
        return 0;
    }    
    return 1;
}
Lord_Style is offline   Reply With Quote
Old 17/09/2012, 06:59 PM   #2
Jason`
High-roller
 
Jason`'s Avatar
 
Join Date: Sep 2011
Posts: 1,458
Reputation: 112
Default Re: Chat Próximo

pawn Code:
public OnPlayerText(playerid, text[])
{
    new Float:Pos[3],string[128],Nome[24];
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
    format(string, 128, "%s diz: %s", Nome, text);
    SetPlayerChatBubble(playerid, text, -1, 100.0, 10000);
    for(new i; i != GetMaxPlayers(); i++)
    {
        if(IsPlayerInRangeOfPoint(i, 10, Pos[0], Pos[1], Pos[2]))
        {
            SendClientMessage(i, -1, string);
        }
    }
    return 0;
}

Quote:
This forum requires that you wait 120 seconds between posts. Please try again in 42 seconds.
This forum requires that you wait 120 seconds between posts. Please try again in 14 seconds.
Jason` is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Pedido] Chat Proximo. Supera Português/Portuguese 6 11/03/2019 11:22 PM
[Ajuda] Chat Proximo Maklister Português/Portuguese 4 25/06/2012 12:40 AM
[Ajuda] Desabilitar Chat Global E Habilitar Um Próximo shadauer Português/Portuguese 7 23/12/2011 07:02 PM
[AJUDA]ERRO AO CRIAR CHAT PROXIMO! ReDKiiL Português/Portuguese 22 01/09/2011 12:26 AM


All times are GMT. The time now is 11:56 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.