[AJUDA] dialog de escolher team
#1

Bom, eu fiz esse dialog com o tutorial do jfs, mais nao ta escolhendo quando eu clico Escolher Policia, Escolher Ladrao, fica parado no lugar e nao acontece nada alguem pode ajudar?

PHP код:
 if(dialogid == Escolha)
    {
        if(
response == 0)
        {
            if(
listitem == 0)
            {
                if(
gTeam[playerid] == Ladrao)
                
SendClientMessage(playerid,CorLadrao,"Vocк escolheu ser Ladrгo Qualquer Duvida Digite ( /ajuda )");
                 if(
Tutorial[playerid] == 1) return 1;
                 if(
Tutorial[playerid] == 0)
                 {
                        
TogglePlayerControllable(playerid0);
                        
GameTextForPlayer(playerid"~b~Tutorial Morro"30006);
                        for(new 
020; ++xSendClientMessage(playerid0xFFFFFF00" ");
                        
ShowPlayerDialog(playerid,16,DIALOG_STYLE_MSGBOX,"{FF0000}-=-=- {FFFFFF}Tutorial Morro {FF0000}-=-=-","Bom, este tutorial vai le ajudar bastante a saber os locais onde vocк vai passar bastante tempo\nAqui й o Morro onde acontece varios tiroteios e assaltos , cuidado ao passar por aqui de carro pode ser roubado ;D","Proximo","Cancelar");
                        
SetPlayerSkin(playerid107);
                        
sTutorial(playerid);
                        return 
1;
                  }
            }
            if(
listitem == 1)
            {
                if(
gTeam[playerid] == Policia)
                {
                    if(
Tutorial[playerid] == 1) return 1;
                     if(
Tutorial[playerid] == 0)
                      {
                        
TogglePlayerControllable(playerid0);
                        
GameTextForPlayer(playerid"~b~Tutorial Morro"30006);
                        for(new 
020; ++xSendClientMessage(playerid0xFFFFFF00" ");
                        
ShowPlayerDialog(playerid,16,DIALOG_STYLE_MSGBOX,"{FF0000}-=-=- {FFFFFF}Tutorial Morro {FF0000}-=-=-","Bom, este tutorial vai le ajudar bastante a saber os locais onde vocк vai passar bastante tempo\nAqui й o Morro onde acontece varios tiroteios e assaltos , cuidado ao passar por aqui de carro pode ser roubado ;D","Proximo","Cancelar");
                        
SetPlayerSkin(playerid107);
                        
sTutorial(playerid);
                        return 
1;
                    }
                    
SendClientMessage(playerid,CorPolicia,"Vocк Escolheu ser Policia Qualquer Duvida Digite ( /ajuda )");
                }
            }
            return 
true;
        }
    } 
Reply
#2

topo do game mode:
#define GangDialog 2

Vocк define aonde quiser.. sу estou tentando ajuda-lo!
Como poderia ser usado em OnPlayerCommandText...
Que ficaria assim:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/GangDialog", true))

{
ShowPlayerDialog(playerid, GangDialog, DIALOG_STYLE_LIST, "Selecione a gang", "Ladrгo\nPolicia", "Unir-se", "Cancelar");
return 1;
}
return 0;
}

//OnPlayerDialog...
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == GangDialog)
{
switch(listitem)
{
case 0:
{
//COD Gang 1
}
case 1:
{
//COD Gang 2

}
}
}
return 1;
}
espero ter ajudado...
Reply
#3

Jб foi resolvido mais obrigado
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)