Odd dialog issue
#1

Hi

I have a problem with the dialogs.
This is the code
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 999999 && response)
    {
        switch(listitem)
        {
            case 0: ShowPlayerDialog( playerid, 999998, DIALOG_STYLE_LIST, "Airplanes", "Andromada\nAT-400\nBeagle\nCropduster\nDodo\nNevada\nShamal\nStuntplane\n{FF0000}Back", "Select", "Cancel" );
            case 1: ShowPlayerDialog( playerid, 999997, DIALOG_STYLE_LIST, "Helicopters", "Cargobob\nLeviathan\nMaverick\nNews Maverick\nRaindance\nSparrow\n{FF0000}Back", "Select", "Cancel" );
        }
    }
return 1;
}

public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    new cpid = checkpointid;
    if(cpid == CP1 || cpid == CP2 || cpid == CP3 || cpid == CP4)
    {
        ShowPlayerDialog(playerid, 999999, DIALOG_STYLE_LIST,"Select","Airplanes\nHelicopters","Select","Cancel");
    }
    return 1;
}
wired thing is that the dialogs 999998 and 999997 are not showing up.
I'm using [REL] Streamer Plugin v2.5.2 for checkpoints.
Can anybody help me?


Thanks.
Reply


Messages In This Thread
Odd dialog issue - by Antonio144 - 24.05.2011, 19:05
Re: Odd dialog issue - by Wesley221 - 24.05.2011, 19:12
Re: Odd dialog issue - by Antonio144 - 24.05.2011, 19:15
Re: Odd dialog issue - by Wesley221 - 24.05.2011, 19:17
Re: Odd dialog issue - by Antonio144 - 24.05.2011, 19:23
Re: Odd dialog issue - by Elka_Blazer - 24.05.2011, 19:30
Re: Odd dialog issue - by Antonio144 - 24.05.2011, 19:44

Forum Jump:


Users browsing this thread: 2 Guest(s)