[Ajuda] dialog nao aparecendo
#1

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""");
                        
                    }
                }
            } 
Reply
#2

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

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;
    } 
Reply
#4

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.
Reply
#5

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
Reply
#6

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
Reply
#7

Alguem ??
Reply
#8

resolvido ja
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)