[Ajuda] Dialog
#1

PHP код:
#define TUTORIAL 1
CMD:tutorial(playerid)
{
    
ShowPlayerDialog(playerid, TUTORIAL, DIALOG_STYLE_LIST, "Tutoriais", "Ver Tutorial\nRegras", "Selecionar", "Cancelar");
    return 
1;
}
no OnDialogResponse:
    if(
dialogid == TUTORIAL)
    {
       if(
response == 0)
       {
       
format(str, sizeof(str), "© Bem vindo a agкncia de Empregos %s\n© Aqui vocк pode ter um Emprego Prуprio\n© E com o Seu Emprego Vocк ganharб Dinheiro", PlayerName(playerid));
       
ShowPlayerDialog(playerid, TUTORIAL, DIALOG_STYLE_MSGBOX, "Agкncia de Empregos", str, "Ok", "Kick");
       }
    } 
Para a Dialog aparecer eu tenho que clicar em cancelar no Tutorial.. Que que ta dando de errado ? Wtf
Reply
#2

Nгo й o response == 0 ?
Reply
#3

Quote:
Originally Posted by FerrariL
Посмотреть сообщение
Nгo й o response == 0 ?
Acho que sim, Mais como vou Definir Para Saber Qual й o Tutorial e qual й as regras?
Ixi mano eu esqueci msm, Kkkk como й msm ;/
Reply
#4

Usa listitem tipo if(listitem == 1),to meio enferrujado em pawn nгo sei se vai dar certo mas tenta ai,olha esse tutorial aqui https://sampforum.blast.hk/showthread.php?tid=119297
Reply
#5

Nгo amigo, vocк estб fazendo errado, response й o botгo que o cara irб clicar, selecionar ou cancelar no seu caso, o correto й:
PHP код:
if(listitem == 0)
            {
             } 
Reply
#6

Vlwwwwwwwwwwwww, era isso Msm DD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)