Dialog Help
#1

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;

Reply
#2

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;
}
Reply
#3

Tnx Bro !
That Worked Perfectly
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)