05.08.2010, 14:45
When you make a dialog something like this
ShowPlayerDialog(playerid, ID YOU USE FOR THE DIALOG ,DIALOG_STYLE_INPUT,"Title:","Content","Option 1","Option 2");
now you use this
if(dialogid == ID YOU USE FOR DIALOG) //----> The id of the dialog like 1, 2, 3, 4...
{
if(response == 1) // ----> The First Option
{
..................
return 1;
}
else // ------> The Second Option
{
....................
}
return 1;
}
ShowPlayerDialog(playerid, ID YOU USE FOR THE DIALOG ,DIALOG_STYLE_INPUT,"Title:","Content","Option 1","Option 2");
now you use this
if(dialogid == ID YOU USE FOR DIALOG) //----> The id of the dialog like 1, 2, 3, 4...
{
if(response == 1) // ----> The First Option
{
..................
return 1;
}
else // ------> The Second Option
{
....................
}
return 1;
}