04.08.2014, 02:34
pawn Код:
#define DIALOG_QUESTION1 1
#define DIALOG_QUESTION2 2
#define DIALOG_QUESTION3 3
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_QUESTION1:
{
if(response) // if yes
{
}
else // if no
{
}
}
case DIALOG_QUESTION2:
{
if(response) // if yes
{
}
else // if no
{
}
}
case DIALOG_QUESTION3:
{
if(response) // if yes
{
}
else // if no
{
}
}
}
return 1;
}
public Somewhere()
{
ShowPlayerDialog(playerid, DIALOG_QUESTION1, DIALOG_STYLE_MSGBOX, "Questions", "Are you a human?", "Yes", "No");
}