Dialogs ... Argh!
#4

Look when displaying the DIALOG_MAIN_MENU if their in order and how you placed them in the code you provided if they're exactly the same.

Another thing to look out for is the DIALOG ID'S make sure they're not conflicting filterscripts, loaded plugins, includes etc.

Also just a tip use switch statement for dialog lists it's much easier and you can organize it much much better (my opinion)

pawn Код:
switch(dialogid)
    {
        case DIALOG_MAIN_MENU:
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0: ShowPlayerDialog(playerid, DIALOG_CREATE_OBJ, DIALOG_STYLE_INPUT, "Create Object", "Creating an object is easy. Simply type the object model ID below into the box.", "Create", "Back");
                    case 1: ShowPlayerDialog(playerid, DIALOG_MODEL_SEARCH, DIALOG_STYLE_INPUT, "Search Object Models", "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", "Search", "Back");
                    case 2: ShowPlayerDialog(playerid, DIALOG_DELETE_OBJ, DIALOG_STYLE_INPUT, "Delete Object", "Please enter the ID of the object you wish to delete.", "Delete", "Back");
                    case 3: ShowPlayerDialog(playerid, DIALOG_EDIT_OBJ, DIALOG_STYLE_INPUT, "Edit Object", "Please enter the ID of the object you wish to edit.", "Edit", "Back");
                    case 4: ShowPlayerDialog(playerid, DIALOG_SAVE_OBJ, DIALOG_STYLE_INPUT, "Save Object", "Please enter the ID of the object you wish to save.\n\nIf you're done typing the ID's, type 'Done'.", "Save", "Back");
                    case 5: ShowPlayerDialog(playerid, DIALOG_LOAD_OBJ, DIALOG_STYLE_INPUT, "Load Objects", "Please enter the filename of a previously saved project to load their objects.\n\nNOTE: Please exclude .pwn from the name, for example. 'MyAdminHQ' instead of 'MyAdminHQ.pwn'.", "Load", "Back");
                }
            }
        }
Reply


Messages In This Thread
Dialogs ... Argh! - by RandomDude - 28.07.2013, 13:28
Re: Dialogs ... Argh! - by RandomDude - 28.07.2013, 16:27
Re: Dialogs ... Argh! - by RandomDude - 30.07.2013, 23:43
Re: Dialogs ... Argh! - by Kitten - 31.07.2013, 00:42
Re: Dialogs ... Argh! - by Marricio - 31.07.2013, 00:45
Re: Dialogs ... Argh! - by Kitten - 31.07.2013, 00:47
Re: Dialogs ... Argh! - by RandomDude - 31.07.2013, 01:12

Forum Jump:


Users browsing this thread: 2 Guest(s)