SA-MP Forums Archive
Dialog Help - 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)
+--- Thread: Dialog Help (/showthread.php?tid=664264)



Dialog Help - Mohaowmad - 23.02.2019

Hello
I have a code here
when i cancel the dialog with ESC the dialog will disappear & it won't come again
i want that when i press ESC , the dialog appears again

PHP код:
public OnPlayerRequestSpawn(playerid)
{
    
ShowPlayerDialog(playerid8585DIALOG_STYLE_LIST"Lotfan Classe Khod ra Entekhab Konid!""{00FF00}Sarbaz - Level 1\n{FFFF80}TakTirandaz - Level 3\n{FF8080}Tabib - Level 5\n{8080C0}Mechanic - Level 8\n{FF8000}Mohandes Parvaz - Level 12\n{80FFFF}Entehari - Level 15\nMa'mur Makhfi - Level 18\n{004000}Nezami - Level 24\n{400000}Hafadyab - Level 30\n{C0C0C0}Arteshi - Level 30\n{FFFF00}Guarde Melli - Level 35\n{808040}Farmandar - Level 40\n{00FFFF}Premium \n""{FF0000}Entekhab""");
    return 
1;




Re: Dialog Help - PPC23 - 23.02.2019

OnDialogResponse:
pawn Код:
if(dialogid == 8585)
{
    if(!response) // When player clicks ESC or second dialog button
    {
        ShowPlayerDialog(playerid, 8585, DIALOG_STYLE_LIST, "Lotfan Classe Khod ra Entekhab Konid!", "{00FF00}Sarbaz - Level 1\n{FFFF80}TakTirandaz - Level 3\n{FF8080}Tabib - Level 5\n{8080C0}Mechanic - Level 8\n{FF8000}Mohandes Parvaz - Level 12\n{80FFFF}Entehari - Level 15\nMa'mur Makhfi - Level 18\n{004000}Nezami - Level 24\n{400000}Hafadyab - Level 30\n{C0C0C0}Arteshi - Level 30\n{FFFF00}Guarde Melli - Level 35\n{808040}Farmandar - Level 40\n{00FFFF}Premium \n", "{FF0000}Entekhab", "");
        return 1;
    }
    // Place first button code here
    return 1;
}



Re: Dialog Help - Mohaowmad - 23.02.2019

Tnx Bro !
That Worked Perfectly