Odd dialog issue - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Odd dialog issue (
/showthread.php?tid=257219)
Odd dialog issue -
Antonio144 - 24.05.2011
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.
Re: Odd dialog issue -
Wesley221 - 24.05.2011
You sure you didn't use those before?
And try to make then 5000, 5001
Re: Odd dialog issue -
Antonio144 - 24.05.2011
I'm sure. I tried diffident numbers already and words, nothing...
Re: Odd dialog issue -
Wesley221 - 24.05.2011
pawn Код:
if(dialogid == 999999 && response == 1)
You could try this.. if this doesnt work, then i dont know whats wrong
Re: Odd dialog issue -
Antonio144 - 24.05.2011
same
Thanks anyway
Re: Odd dialog issue -
Elka_Blazer - 24.05.2011
LOL ? dialogid 999999 ![Huh?](images/smilies/confused.gif)
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 ...
Re: Odd dialog issue -
Antonio144 - 24.05.2011
wth it works but I tried that before but it didn't work then...
Thanks