21.01.2011, 11:14
Example:
OnPlayerConnect:
OnDialogResponse:
OnPlayerConnect:
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Title", "Information", "Button 1", "Button 2");
pawn Код:
if(dialogid == 1)
{
if(response == 0)
{
SendClientMessage(playerid, -1, "You clicked on Button 2");
//bla bla bla
}
if(response)
{
if(listitem == 0)
{
//bla bla bla
}
}
return 1;
}