Jump to content

Question

Posted

Salut cand scriu o comanda apare un dialog si la dialog sunt semnele de ex cancel si options daca dau pe cancel sa se inchida si daca dau pe options sa apara alt dialog Imi puteti zice cum fac:D?

3 answers to this question

Recommended Posts

Posted
#define MAIN_DIALOG 0
#define SECOND_DIALOG 1

// Intr-o comanda
ShowPlayerDialog( playerid, MAIN_DIALOG, DIALOG_STYLE_MSGBOX, "{FFFFFF}Salut.", "{FFFFFF}Am facut acest dialog ca sa testez ceva.", "Options", "Cancel" );

// La OnDialogResponse
if( dialogid == MAIN_DIALOG )
{
    if( response ) return ShowPlayerDialog( playerid, SECOND_DIALOG, DIALOG_STYLE_MSGBOX, "{FFFFFF}Second.", "{FFFFFF}Al 2-lea dialog care apare cand dai \"response\" ( pe primul buton ), in cazul nostru \"Options\", "OK", "" );

    return 1;
}

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.