OnDialogResponse Bugged! Help!
#1

pawn Код:
case FMNG_DIALOG:
        {
            if(!response) return 1; //SendClientMessage(playerid, red, "[FACTION] "whitex"You canceled the management of your faction.");
            if(response)
            {
                switch(listitem)
                {
                    case 0:
                    {
                        SendClientMessage(playerid, red, "[ERROR] "whitex"Not Scripted yet. :P");
                        return 1;
                    }
                    case 1:
                    {
                        String("Edit Rank 1\nEdit Rank 2\nEdit Rank 3\nEdit Rank 4\nEdit Rank 5");
                        ShowPlayerDialog(playerid, 54321, DIALOG_STYLE_LIST, "Faction Management - Rank Editing", gString, "Select", "Cancel");
                        return 1;
                    }
                }
            }
        }
        case 54321:
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0: ShowPlayerDialog(playerid, FRNK1_DIALOG, DIALOG_STYLE_INPUT, "Faction Management - Rank 1", "Enter the rank title you would want to make for Rank 1", "Edit", "Cancel");
                    case 1: ShowPlayerDialog(playerid, FRNK2_DIALOG, DIALOG_STYLE_INPUT, "Faction Management - Rank 2", "Enter the rank title you would want to make for Rank 2", "Edit", "Cancel");
                    case 2: ShowPlayerDialog(playerid, FRNK3_DIALOG, DIALOG_STYLE_INPUT, "Faction Management - Rank 3", "Enter the rank title you would want to make for Rank 3", "Edit", "Cancel");
                    case 3: ShowPlayerDialog(playerid, FRNK4_DIALOG, DIALOG_STYLE_INPUT, "Faction Management - Rank 4", "Enter the rank title you would want to make for Rank 4", "Edit", "Cancel");
                    case 4: ShowPlayerDialog(playerid, FRNK5_DIALOG, DIALOG_STYLE_INPUT, "Faction Management - Rank 5", "Enter the rank title you would want to make for Rank 5", "Edit", "Cancel");
                }
            }
        }
        case FRNK1_DIALOG:
        {
            if(response)
            {
                if(isnull(inputtext)) return ShowPlayerDialog(playerid, FMNG_DIALOG, DIALOG_STYLE_LIST, "Faction Management", "Edit Rank Titles\nFaction Color", "Select", "Cancel");
                else
                {
                    if(strlen(inputtext) > 20) return SendClientMessage(playerid, red, "[FACTION] "whitex"The rank text cannot be greater than 20 characters.");
                    SendClientMessage(playerid, green, "[FACTION] "whitex"Rank 1 text edited.");
                    Query("UPDATE `factions` SET `fRank1` = '%s' WHERE `fID` = '%i' LIMIT 1", inputtext, pInfo[playerid][pFaction]);
                    mysql_tquery(mysql, gString);
                    return 1;
                }
            }
        }

So this is the code, whenever I click press enter on case 1 of the FMNG Dialog(first one in the code above) it gives me nothing when it should be showing me another DIALOG_STYLE_LIST dialog.
What's wrong there?
Reply


Messages In This Thread
OnDialogResponse Bugged! Help! - by iReacheR - 31.07.2014, 23:20
Re: OnDialogResponse Bugged! Help! - by BlackM - 01.08.2014, 03:39

Forum Jump:


Users browsing this thread: 1 Guest(s)