SA-MP Forums Archive
[Ajuda] Chat Profissгo Bugado. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Chat Profissгo Bugado. (/showthread.php?tid=396327)



Chat Profissгo Bugado. - Kratos_xD - 30.11.2012

Eu uso /PC qe й o comando para falar com as pessoas da mesma profissao e ela manda mensagem para todos.

pawn Код:
if(strcmp(cmd,"/pc",true)==0)
{
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    format(file, sizeof(file), P_CONTAS, aname);
    strmid(tmp,cmdtext,3,strlen(cmdtext));
    if(!strlen(tmp)) {
        SendClientMessage(playerid,Vermelho,"/pc [texto]");
        return 1;
    }
    else {
        format(string, sizeof(string), "| Profissгo Chat | %s diz: %s", aname, tmp);
        Chatp(GetPlayerColor(playerid),string,1,playerid);
        return 1;
    }
}



Re: Chat Profissгo Bugado. - Joao Pedro - 30.11.2012

problema na funзгo Chatp


Re: Chat Profissгo Bugado. - Kratos_xD - 30.11.2012

mas como eu conserto mano sou novo em pawn :S queria que aparece-se somente para as pessoas da mesma profissao da que a pessoa que digitou o texto.


Re: Chat Profissгo Bugado. - VenoN - 30.11.2012

Poste a Public Chatp!