SA-MP Forums Archive
[Ajuda] Novo dialog 4 dando erro. - 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] Novo dialog 4 dando erro. (/showthread.php?tid=574844)



Novo dialog 4 dando erro. - Duk - 21.05.2015

Pessoal estou me adaptando no meu sistema de pagar multa o problema й que eu quero colocar la em cima o cabeзalho para cada coluna pode ser definida.

Exemplo:

Multa ____________________ Quantidades __________ Preзo
Trafegando na calзada_____________ 5 _______________ R$2000
Estacionamento Indevido___________ 2 _______________ R$3000

Atй ai tudo bem, o problema й que nгo consigo colocar o nome la em cima e fica assim olha



pawn Код:
CMD:multas(playerid, params[])
{
    if(!IsPlayerInRangeOfPoint(playerid, 2.0, -2033.4347, -118.0444, 1035.1719)) return SendClientMessage(playerid,VERMELHO_BEM_CLARO ,"Vocк nгo estб no detran.");
    TogglePlayerControllable(playerid, 1);
    new
    Celulas1[1000],
    Celulas2[1000]
    ;

    format(Celulas2, sizeof(Celulas2), "Multas\tQuantidades\tValor\n\");
    strcat(Celulas1, Celulas2, sizeof(Celulas1));

    format(Celulas2, sizeof(Celulas2), "
{FFFFFF}Trafegar na Calзada:\t{FFA500}%d\t{4EBF72}R$%d\n", INFO_P[playerid][MULTA_TNC_P], INFO_P[playerid][MULTA_TNC_P] * 724);
    strcat(Celulas1, Celulas2, sizeof(Celulas1));

    format(Celulas2, sizeof(Celulas2), "
{FFFFFF}Direзгo Perigosa:\t{FFA500}%d\t{4EBF72}R$%d\n", INFO_P[playerid][MULTA_DP_P], INFO_P[playerid][MULTA_DP_P] * 1930);
    strcat(Celulas1, Celulas2, sizeof(Celulas1));

    format(Celulas2, sizeof(Celulas2), "
{FFFFFF}Estacionamento Indevido:\t{FFA500}%d\t{4EBF72}R$%d\n", INFO_P[playerid][MULTA_EI_P], INFO_P[playerid][MULTA_EI_P] * 200);
    strcat(Celulas1, Celulas2, sizeof(Celulas1));

    format(Celulas2, sizeof(Celulas2), "
{FFFFFF}Contra Mгo:\t{FFA500}%d\t{4EBF72}R$%d\n", INFO_P[playerid][MULTA_CM_P], INFO_P[playerid][MULTA_CM_P] * 900);
    strcat(Celulas1, Celulas2, sizeof(Celulas1));

    format(Celulas2, sizeof(Celulas2), "
{FFFFFF}Dirigir Bкbado:\t{FFA500}%d\t{4EBF72}R$%d\n", INFO_P[playerid][MULTA_DB_P], INFO_P[playerid][MULTA_DB_P] * 1915);
    strcat(Celulas1, Celulas2, sizeof(Celulas1));

    format(Celulas2, sizeof(Celulas2), "
{FFFFFF}Farol Desligado:\t{FFA500}%d\t{4EBF72}R$%d\n", INFO_P[playerid][MULTA_FD_P], INFO_P[playerid][MULTA_FD_P] * 250);
    strcat(Celulas1, Celulas2, sizeof(Celulas1));

    format(Celulas2, sizeof(Celulas2), "
{FFFFFF}Excesso de Velocidade:\t{FFA500}%d\t{4EBF72}R$%d\n", INFO_P[playerid][MULTA_EDV_P], INFO_P[playerid][MULTA_EDV_P] * 574);
    strcat(Celulas1, Celulas2, sizeof(Celulas1));  
   
    format(Celulas2, sizeof(Celulas2), "
{FFFFFF}Dirigir sem Habilitaзгo:\t{FFA500}%d\t{4EBF72}R$%d", INFO_P[playerid][MULTA_DSH_P], INFO_P[playerid][MULTA_DSH_P] * 700);
    strcat(Celulas1, Celulas2, sizeof(Celulas1));  

    ShowPlayerDialog(playerid, 6, DIALOG_STYLE_TABLIST, "
         {FFFFFF}Multas                      {FFA500}Quantidades         {4EBF72}Valor", Celulas1, "Confirmar", "Fechar");

    return true;
}


Re: Novo dialog 4 dando erro. - Duk - 21.05.2015

Arrumado, eu confundi DIALOG_STYLE_TABLIST POR DIALOG_STYLE_TABLIST_HEADERS.


Re: Novo dialog 4 dando erro. - Gii - 21.05.2015

Vocк deve usar: DIALOG_STYLE_TABLIST_HEADERS

Beijos!

@edit

Vish ...