Dialog bug?
#1

Well, When acting on the RULES Dialog, it is showing roleplay quiz 1.
But when answering on Roleplay Quiz 1, It wont show the RP quiz 2 dialog.
pawn Код:
if(dialogid == 4) // register SERVER RULES AGREEMENT
        {
            if( response )
            {
                ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Roleplay Quiz (1/5) -- A roleplaying game's main aim is to..","...earn money and level-up.\n...Assume the role of the character you're playing with.\n...Kill each others.","Select","Cancel");
            }
            else // Not accepting rules, kicking them. Also deleting their playerfile.
            {
            new INI:File = INI_Open(UserPath(playerid));
            INI_RemoveEntry(File, UserPath(playerid));
            INI_Close(File);
            SetTimerEx("kickbugfix", 1000, false, "i", playerid);
            }
            return 1;
        }
        if(dialogid == 5) // register rp quiz 1
        {
        if(response){
            switch(dialogid)
            {
              case 1:
              {
                 switch(listitem) // We will now check the RP quiz answers.
                 {
                    case 0: // Whrong answer.
                    {
                    RPQuiz[playerid] = 1;
                    ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Roleplay Quiz (2/5) -- OOC refers to the world of the..","...Characters, rather than the world of the players.\n...Players, rather than the world of the characters.\n...Players and the world of the characters.","Select","Cancel");
                    }
                    case 1: // Correct Answer
                    {
                    ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Roleplay Quiz (2/5) -- OOC refers to the world of the..","...Characters, rather than the world of the players.\n...Players, rather than the world of the characters.\n...Players and the world of the characters.","Select","Cancel");
                    }
                    case 2: // Whrong answer.
                    {
                    RPQuiz[playerid] = 1;
                    ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Roleplay Quiz (2/5) -- OOC refers to the world of the..","...Characters, rather than the world of the players.\n...Players, rather than the world of the characters.\n...Players and the world of the characters.","Select","Cancel");
                    }
                }
              }
            }
        }
        else
        {
            new string[2048];
            strcat(string, "{FFFFFF}1. Do not use any cheats or hacks, exploits or third party modifications.\n2. Roleplay at all times unless an admin says not to.\n3. Do not metagame.\n4. Do not powergame.\n5. Revenge killing is prohibited.");
            strcat(string, "\n6. Do not steal (ninja-jack) occupied vehicles without any roleplay involved.\n7. Do not use abbrevations in character.\n8. Constantly jumping (bunny-hopping) is prohibited.\n9. Car-surfing is allowed only in pickup trucks (Up to 2 persons in the back).\n10." );
            strcat(string, " Do not AFK or alt-tab for longer than 10 minutes.\n11. Do not advertise any sites or server without admin approval.\n12. Flaming or racism is prohibited.\n" );

            strcat(string, "14. Do not use fully capitalized sentences in OOC chat.\n15. Do not spam.\n16. Do not rob or scam players level 1 or 2.\n17. Do not scam over $1000.\n18. A robbery can be performed only by using the /rob command or");
            strcat(string, " choosing\nbetween the victim's inventory item/cash.\n19. Do not take out any weapons without any roleplay unless they're scriptly holstered.\n20. IC chat is an english-only chat.\n21. Sexual Harassment without an OOC concensus between both sides is prohibited.\n22." );
            strcat(string, "Do not use celebrity/famous name as character name.\n23. don't transfer money or property from one account to another without an admin's permission.\n");

            strcat(string, "24. Do not share your accounts with other people.\n 25. IC fights have to be roleplayed according to the server script/RP fight policy.\n26. Do not attack LEO's if there is less than 3 LEO members online.\n\nBy clicking the ''i agree'' button you agree with our rules." );
            ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX,"Server Rules Agreement (1/7)",string,"Accept","Decline");
        }
        return 1;
        }
Reply
#2

bump
Reply
#3

try this
pawn Код:
if(dialogid == 5) // register rp quiz 1
        {
        if(response)
{
           
               
             
                 switch(listitem) // We will now check the RP quiz answers.
                 {
                    case 0: // Whrong answer.
                    {
                    RPQuiz[playerid] = 1;
                    ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Roleplay Quiz (2/5) -- OOC refers to the world of the..","...Characters, rather than the world of the players.\n...Players, rather than the world of the characters.\n...Players and the world of the characters.","Select","Cancel");
                    }
                    case 1: // Correct Answer
                    {
                    ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Roleplay Quiz (2/5) -- OOC refers to the world of the..","...Characters, rather than the world of the players.\n...Players, rather than the world of the characters.\n...Players and the world of the characters.","Select","Cancel");
                    }
                    case 2: // Whrong answer.
                    {
                    RPQuiz[playerid] = 1;
                    ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Roleplay Quiz (2/5) -- OOC refers to the world of the..","...Characters, rather than the world of the players.\n...Players, rather than the world of the characters.\n...Players and the world of the characters.","Select","Cancel");
                    }
}}}
Reply
#4

Dialog Wont Appear? EX: when type /cmds like this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)