20.01.2012, 10:29
Just do it as in the example.
Dialog Styles: https://sampwiki.blast.hk/wiki/Dialog_Styles
When you make:
Then you have to make the script, that does when you press one of the buttons (Login or Cancel).
Lets say:
Dialog Styles: https://sampwiki.blast.hk/wiki/Dialog_Styles
When you make:
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Log in","Enter your password to login:","Login","Cancel");
Lets say:
pawn Код:
if(dialogid==1)
{
if(response) // The first button (Login)
{
// Your script here
}
if(!response) // The second button (Cancel)
{
// Your script here
}