18.04.2014, 15:56
how can I validate the second button?
Button 2 is an example of someone I want to use?
Button 2 is an example of someone I want to use?
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0) // your dialog id
{
if(response) {
// button1
}
else {
// button2
}
}
return 0;
}
ShowPlayerDialog(playerid, 666, DIALOG_STYLE_LIST, "caption", "info\ninfo\ninfo", "Button1", "");