[Ajuda] Dialogo pulando
#1

Tipo, o meu dialogo ta pulando 1 ,

Sistema

pawn Код:
#define DIALOG_TUTORIAL 14 // Dialog_tutorial
pawn Код:
if (strcmp("/tutorial", cmdtext, true, 10) == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_TUTORIAL,DIALOG_STYLE_MSGBOX,"Tutorial","Olб player, vocк iniciou o tutorial /tutorial\n Portanto preste bem atenзгo.","Proximo","");
    return 1;
    }
pawn Код:
if(dialogid == 14)
    {
       if(response)
       {
            ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "Tutorial", "Olб player, vocк iniciou o tutorial /tutorial\n Portanto preste bem atenзгo.", "Proximo","");
            SetPlayerCameraLookAt(playerid,1463.6812,-1712.1426,36.5581);
           
       }

    }
     
      if(dialogid == 14)
      {
      if(response)
      {
         ShowPlayerDialog(playerid,3, DIALOG_STYLE_MSGBOX,"Parte 3", "Pronto acabou seu tutorial", "Ok", "Ok");
         SetPlayerPos(playerid,1481.0829,-1772.2993,18.7958); // Posiзгo inicial do server
         return 1;
      }
      }
Dai Ele exibe certinho
ESSE:

pawn Код:
ShowPlayerDialog(playerid,DIALOG_TUTORIAL,DIALOG_STYLE_MSGBOX,"Tutorial","Olб player, vocк iniciou o tutorial /tutorial\n Portanto preste bem atenзгo.","Proximo","");
Entгo o proximo seria :
pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "Tutorial", "Olб player, vocк iniciou o tutorial /tutorial\n Portanto preste bem atenзгo.", "Proximo","");
            SetPlayerCameraLookAt(playerid,1463.6812,-1712.1426,36.5581);
Sу que ele pula esse, e ja vai para o

pawn Код:
ShowPlayerDialog(playerid,3, DIALOG_STYLE_MSGBOX,"Parte 3", "Pronto acabou seu tutorial", "Ok", "Ok");
         SetPlayerPos(playerid,1481.0829,-1772.2993,18.7958); // Posiзгo inicial do server
Como que resolve isso?
Reply
#2

pawn Код:
//Inicio do Gamemode
#define DIALOG_TUTORIAL 14 // Dialog_tutorial
#define DIALOG_TUTORIAL_2 15 // Dialog_tutorial_2
#define DIALOG_TUTORIAL_3 16 // Dialog_tutorial_3

//OnPlayerCommandText
if (strcmp("/tutorial", cmdtext, true, 10) == 0)
{
     ShowPlayerDialog(playerid,DIALOG_TUTORIAL,DIALOG_STYLE_MSGBOX,"Tutorial","Olб player, vocк iniciou o tutorial /tutorial\n Portanto preste bem atenзгo.","Proximo","");
     return 1;
}
//OnPlayerDialogResponse
if(dialogid == DIALOG_TUTORIAL)
{
     ShowPlayerDialog(playerid, DIALOG_TUTORIAL_2, DIALOG_STYLE_MSGBOX, "Tutorial", "Olб player, esta й a primeira etapa do tutorial.", "Proximo","");
     SetPlayerCameraLookAt(playerid,1463.6812,-1712.1426,36.5581);
     return 1;    
}
if(dialogid == DIALOG_TUTORIAL_2)
{
     ShowPlayerDialog(playerid,DIALOG_TUTORIAL_3, DIALOG_STYLE_MSGBOX,"Parte 3", "Pronto acabou seu tutorial", "Ok", "");
     SetPlayerPos(playerid,1481.0829,-1772.2993,18.7958); // Posiзгo inicial do server
     return 1;
}
Caso queira mais "Etapas, use o mesmo padrгo alterando somente os ID's
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)