SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 15/02/2020, 11:00 PM   #1
moura98
Huge Clucker
 
moura98's Avatar
 
Join Date: Jul 2015
Location: Brasil
Posts: 439
Reputation: 20
Post dialog nao aparecendo

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""");
                        
                    }
                }
            } 
__________________
moura98 is offline   Reply With Quote
Old 15/02/2020, 11:03 PM   #2
zKaioDzn
Big Clucker
 
zKaioDzn's Avatar
 
Join Date: May 2019
Location: .
Posts: 130
Reputation: 0
Default Re: dialog nao aparecendo

Certo, essa é a função mande-a a função que puxa a dialog principal.
__________________
75% [██████████---]
zKaioDzn is offline   Reply With Quote
Old 15/02/2020, 11:05 PM   #3
moura98
Huge Clucker
 
moura98's Avatar
 
Join Date: Jul 2015
Location: Brasil
Posts: 439
Reputation: 20
Default Re: dialog nao aparecendo

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;
    } 
__________________
moura98 is offline   Reply With Quote
Old 15/02/2020, 11:16 PM   #4
zKaioDzn
Big Clucker
 
zKaioDzn's Avatar
 
Join Date: May 2019
Location: .
Posts: 130
Reputation: 0
Default Re: dialog nao aparecendo

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.
__________________
75% [██████████---]
zKaioDzn is offline   Reply With Quote
Old 15/02/2020, 11:18 PM   #5
moura98
Huge Clucker
 
moura98's Avatar
 
Join Date: Jul 2015
Location: Brasil
Posts: 439
Reputation: 20
Default Re: dialog nao aparecendo

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
__________________
moura98 is offline   Reply With Quote
Old 15/02/2020, 11:24 PM   #6
zKaioDzn
Big Clucker
 
zKaioDzn's Avatar
 
Join Date: May 2019
Location: .
Posts: 130
Reputation: 0
Default Re: dialog nao aparecendo

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
__________________
75% [██████████---]
zKaioDzn is offline   Reply With Quote
Old 16/02/2020, 02:12 PM   #7
moura98
Huge Clucker
 
moura98's Avatar
 
Join Date: Jul 2015
Location: Brasil
Posts: 439
Reputation: 20
Default Re: dialog nao aparecendo

Alguem ??
__________________
moura98 is offline   Reply With Quote
Old 16/02/2020, 03:55 PM   #8
moura98
Huge Clucker
 
moura98's Avatar
 
Join Date: Jul 2015
Location: Brasil
Posts: 439
Reputation: 20
Default Re: dialog nao aparecendo

resolvido ja
__________________
moura98 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Dialog aparecendo em outra dialog KrosmoStewart Português/Portuguese 8 20/02/2019 03:04 AM
[Ajuda] Dialog não aparecendo ao conectar LockedLucas Português/Portuguese 0 14/02/2016 10:25 PM
[Ajuda] eu queria q essa mensagem aparecesse em dialog, aparecendo a opção 'sim' 'não' sem ta digitando sim ou não Junior_Cunha Português/Portuguese 29 28/07/2012 05:43 PM
[Ajuda] Dialog de login aparecendo varias vezes arakuta Português/Portuguese 6 11/07/2011 11:59 AM
[DUV]Gz's nao aparecendo Xapita_Halls Português/Portuguese 1 19/11/2010 08:52 PM


All times are GMT. The time now is 01:39 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.