24.05.2011, 19:05
Hi
I have a problem with the dialogs.
This is the code
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.
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;
}
I'm using [REL] Streamer Plugin v2.5.2 for checkpoints.
Can anybody help me?
Thanks.