SA-MP Forums Archive
[Ajuda] dialog nao aparecendo - 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 nao aparecendo (/showthread.php?tid=672506)



dialog nao aparecendo - moura98 - 15.02.2020

por que a dialog nao esta aparecendo ?

PHP Code:
if( response )
        {
            if( 
Pergunta[playerid] == )
            {
                switch (
listitem)
                {
                    case 
0
                    {
                        for(new 
ii<20i++)
                           {
                               
SendClientMessage(playerid, -1"");
                           }
                           
SendClientMessage(playerid0x00FFFF"Pergunta: ");
                           
SendClientMessage(playerid, -1"Dar socos, tiro em outro jogador sem motivo. qual nome da regra infringida?");
                        
format(str2sizeof str2"{FFFFFF}A: DeathMatch \nB: NonSense \nMetaGaming");
                        
Pergunta[playerid] = 2;
                        
ShowPlayerDialog(playeridD_WLDIALOG_STYLE_LISTstrstr2"Confirmar""");
                    }
                    case 
1
                    {
                        for(new 
ii<20i++)
                           {
                               
SendClientMessage(playerid, -1"");
                           }
                           
SendClientMessage(playerid0x00FFFF"Pergunta: ");
                           
SendClientMessage(playerid, -1"Dar socos, tiro em outro jogador sem motivo. qual nome da regra infringida?");
                        
format(str2sizeof str2"{FFFFFF}A: DeathMatch \nB: NonSense \nMetaGaming");
                        
Pergunta[playerid] = 2;
                        
ShowPlayerDialog(playeridD_WLDIALOG_STYLE_LISTstrstr2"Confirmar""");
                    }
                    case 
2
                    {
                        for(new 
ii<20i++)
                           {
                               
SendClientMessage(playerid, -1"");
                           }
                           
SendClientMessage(playerid0x00FFFF"Pergunta: ");
                           
SendClientMessage(playerid, -1"Dar socos, tiro em outro jogador sem motivo. qual nome da regra infringida?");
                        
format(str2sizeof str2"{FFFFFF}A: DeathMatch \nB: NonSense \nMetaGaming");
                        
Pergunta[playerid] = 2;
                        
ShowPlayerDialog(playeridD_WLDIALOG_STYLE_LISTstrstr2"Confirmar""");
                        
CountWL[playerid]++;
                    }
                }
            }
            else if( 
Pergunta[playerid] == )
            {
                switch (
listitem)
                {
                    case 
0
                    {
                        for(new 
ii<20i++)
                           {
                               
SendClientMessage(playerid, -1"");
                           }
                           
SendClientMessage(playerid0x00FFFF"Pergunta: ");
                           
SendClientMessage(playerid, -1"{FFFFFF}Forca um ato RP ou nao RP. Qual regra infrigida?");
                        
format(str2sizeof str2"{FFFFFF}A: DeathMatch \nB: PowerGaming \nC: MetaGaming");
                        
Pergunta[playerid] = 3;
                        
ShowPlayerDialog(playeridD_WLDIALOG_STYLE_LISTstrstr2"Confirmar""");
                        
CountWL[playerid]++;
                    }
                    case 
1
                    {
                        for(new 
ii<20i++)
                           {
                               
SendClientMessage(playerid, -1"");
                           }
                           
SendClientMessage(playerid0x00FFFF"Pergunta: ");
                           
SendClientMessage(playerid, -1"{FFFFFF}Forca um ato RP ou nao RP. Qual regra infrigida?");
                        
format(str2sizeof str2"{FFFFFF}A: DeathMatch \nB: PowerGaming \nC: MetaGaming");
                        
Pergunta[playerid] = 3;
                        
ShowPlayerDialog(playeridD_WLDIALOG_STYLE_LISTstrstr2"Confirmar""");
                        
CountWL[playerid]++;
                        
ShowPlayerDialog(playeridD_WLDIALOG_STYLE_LISTstrstr2"Confirmar""");
                    }
                    case 
2
                    {
                        for(new 
ii<20i++)
                           {
                               
SendClientMessage(playerid, -1"");
                           }
                           
SendClientMessage(playerid0x00FFFF"Pergunta: ");
                           
SendClientMessage(playerid, -1"{FFFFFF}Forca um ato RP ou nao RP. Qual regra infrigida?");
                        
format(str2sizeof str2"{FFFFFF}A: DeathMatch \nB: PowerGaming \nC: MetaGaming");
                        
Pergunta[playerid] = 3;
                        
ShowPlayerDialog(playeridD_WLDIALOG_STYLE_LISTstrstr2"Confirmar""");
                        
CountWL[playerid]++;
                        
ShowPlayerDialog(playeridD_WLDIALOG_STYLE_LISTstrstr2"Confirmar""");
                        
                    }
                }
            } 



Re: dialog nao aparecendo - zKaioDzn - 15.02.2020

Certo, essa й a funзгo mande-a a funзгo que puxa a dialog principal.


Re: dialog nao aparecendo - moura98 - 15.02.2020

PHP Code:
public OnPlayerConnect(playerid)
{
    
online++;
    if( 
Player[playerid][WhiteList] == false )
    {
        new 
str[150];
           for (new 
ii<20i++)
           {
               
SendClientMessage(playerid, -1"");
           }
           
SendClientMessage(playerid0x00FFFF"Pergunta: ");
           
SendClientMessage(playerid, -1"Voces estao em IC e um jogador fala seu nome sem te perguntar. Qual a regra infrigida?");
        
format(strsizeof str"{FFFFFF}A: DeathMatch \nB: PowerGaming \nMetaGaming");
        
Pergunta[playerid] = 1;
        
ShowPlayerDialog(playeridD_WLDIALOG_STYLE_LIST"Whitelist"str"Confirmar""");
        return 
1;
    } 



Re: dialog nao aparecendo - zKaioDzn - 15.02.2020

Estranho, Vocк jб deu uma olhada se a vбriavel "Player[playerid][WhiteList] " Jб nгo estб nascendo como true?

Faзa um teste, seta a vбriavel false ao entrar para ver se o erro foi esse.


Re: dialog nao aparecendo - moura98 - 15.02.2020

Quote:
Originally Posted by zKaioDzn
View Post
Estranho, Vocк jб deu uma olhada se a vбriavel "Player[playerid][WhiteList] " Jб nгo estб nascendo como true?

Faзa um teste, seta a vбriavel false ao entrar para ver se o erro foi esse.
a primeira aparece so nao a segunda pra frente


Re: dialog nao aparecendo - zKaioDzn - 15.02.2020

A Segunda chega б aparecer? ou a funзгo da primeira nem passa para a segunda.

Me adicione no discord para ser mais rбpido. WhoniX#2047


Re: dialog nao aparecendo - moura98 - 16.02.2020

Alguem ??


Re: dialog nao aparecendo - moura98 - 16.02.2020

resolvido ja