SA-MP Forums Archive
[Ajuda] Chat com limite de caracteres - 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 com limite de caracteres (/showthread.php?tid=597169)



Chat com limite de caracteres - viniciussvl - 27.12.2015

Esse chat vip tб com um limite de caracteres, e eu queria tirar, jб tentei aumentar a string o text porйm continua com um limite de caracteres chato pra caramba rs

pawn Код:
CMD:v(playerid, params[])
{
    if(pVip[playerid][Vip] < 1) return SendClientMessage(playerid, 0xAD0000AA, "[x] Vocк nгo й vip!");
    new text[128], string[256], playern[MAX_PLAYER_NAME];
    if(sscanf(params, "s", text)) return SendClientMessage(playerid, YELLOW, "[ > ]Uso correto: /v [texto]");
    GetPlayerName(playerid, playern, sizeof(playern));
    format(string, sizeof(string), "( CHAT VIP ) %s:  %s", playern, text);
    SendFamilyMessage( string);
    return 1;
}



Re: Chat com limite de caracteres - arakuta - 27.12.2015

Primeiro, strings para SendClientMessage nгo pode passar de 144 caracteres.

Segundo, parece que quem estб capando й a funзгo SendFamilyMessage


Re: Chat com limite de caracteres - viniciussvl - 27.12.2015

pawn Код:
stock SendFamilyMessage(mensagem[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(pVip[i][Vip] >= 1)
            {
                SendClientMessage(i, CorVip, mensagem);
            }
        }
    }
    return 0;
}

Essa funзao?