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
#2

You sure you didn't use those before?
And try to make then 5000, 5001
Reply
#3

I'm sure. I tried diffident numbers already and words, nothing...
Reply
#4

pawn Код:
if(dialogid == 999999 && response == 1)
You could try this.. if this doesnt work, then i dont know whats wrong
Reply
#5

same

Thanks anyway
Reply
#6

LOL ? dialogid 999999
There is a limit for dialog id's .... I cant remember it but it should be written somewhere here
https://sampwiki.blast.hk/wiki/ShowPlayerDialog

Just change the id ... to something like 9931 or WhatEver ...
Reply
#7

wth it works but I tried that before but it didn't work then...

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)