SA-MP Forums Archive
[ajuda] Dialog - 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] Dialog (/showthread.php?tid=248058)



[ajuda] Dialog - Lucas_ - 11.04.2011

galera qual й o maximo de caracteres que posso colocar no DIALOG_STYLE_MSGBOX??
eu to fazendo um para o comando /comandos
para mostrar todos os comandos que um player normal pode usar!

eu coloquei certo mais quando fui compilar diz que o texto й muito longo... e agora o que eu faзo para colocar todos os cmds no DIALOG_STYLE_MSGBOX?


Re: [ajuda] Dialog - zSuYaNw - 11.04.2011




Re: [ajuda] Dialog - Lucas_ - 11.04.2011

e como devo aplicar isso aqui:

pawn Код:
if(strcmp(cmd, "/comandos", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
           ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, "comandos", "/comandos", "Ok", "Sair");
           return 1;
        }
        return 1;
    }



Re: [ajuda] Dialog - Macintosh - 11.04.2011

pawn Код:
if(strcmp("/corinthians", cmdtext, true) == 0)
{
     static string[600] = "CORINTHIANS PODEROSO TIMAO\n";
     strins(string,"/corinthians /corinthians  /corinthians  /corinthians  /corinthians  /corinthians\n",strlen(string));
     strins(string," /corinthians  /corinthians  /corinthians  /corinthians  /corinthians  /corinthians\n",strlen(string));
     ShowPlayerDialog(playerid, DIALOGTIMAO, DIALOG_STYLE_MSGBOX,"TIMAO",string, "OWN3D","OWN3D");
     return 1;
}
Tenta

@Mals pelo double, conexгo ruim O.O


Re: [ajuda] Dialog - JonathanFeitosa - 11.04.2011

Veja Como Criar No Meu Tutorial

https://sampforum.blast.hk/showthread.php?tid=243197

Olhe um Exemplo Que eu Fiz

[/B]


Re: [ajuda] Dialog - Lucas_ - 11.04.2011

nгo tah dando certo aqui


Re: [ajuda] Dialog - zSuYaNw - 11.04.2011

pawn Код:
static string[600] = "iPs Team\n";
                strins(string,"Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, \n",strlen(string));
                strins(string,"Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, ,\n",strlen(string));
                strins(string,"Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, Gatoh, .\n",strlen(string));
                strins(string,"Tambйm poderб receber um payday especial de cartгo bronze de 50 reais a cada 1 dia.\n",strlen(string));
                                   
                ShowPlayerDialog(playerid, DIALOG_CARTAO_BRONZE, DIALOG_STYLE_MSGBOX,"~ Info ~",string, "Ok","Fechar");



Re: Respuesta: [ajuda] Dialog - zSuYaNw - 11.04.2011

Quote:
Originally Posted by [FeK]DraKiNs
Посмотреть сообщение
@Galerinha

Para que utilizar strings e strlen se existe strcat?

Pelo amor de deus

pawn Код:
new sStr[2][24];

sStr[0] = "Hello ";
sStr[1] = "World";

strcat(sStr[0],sStr[1]);
Output:
Hello World

@Topic

Fazemos um strcat em cada comando ou varios comando segue exemplo:

pawn Код:
if(!strcmp(cmd, "/comandos", true))
{
    static sDialog[1024];

    strcat(sDialog,"Ola a Todos \n\r");
    strcat(sDialog,"Ola a Todos \n\r");
    strcat(sDialog,"Ola a Todos \n\r");
    strcat(sDialog,"Ola a Todos \n\r");
    strcat(sDialog,"Ola a Todos \n\r");
    strcat(sDialog,"Ola a Todos \n\r");
    strcat(sDialog,"Ola a Todos \n\r");
    strcat(sDialog,"Ola a Todos \n\r");
    strcat(sDialog,"Ola a Todos \n\r");

    ShowPlayerDialog(playerid,20, DIALOG_STYLE_MSGBOX,sDialog, "Ok", "Sair");
    return 0x1;
}
Mostrarб uma lista com 'Ola a Todos'
amooor, nгo conhecia a funзгo strcat =/
entгo postei oque sabia.

=D

@preciso fala com tigo drakins - msn@


Re: [ajuda] Dialog - Lucas_ - 11.04.2011

desculpem galera nгo tinha visto que o jonathan tinha postado ... deu certo agora.... vlw por todos tentarem me ajudar


Re: [ajuda] Dialog - zSuYaNw - 11.04.2011

irei me atualizar no SA:MP.

obrigado pela informaзхes