12.11.2010, 22:07
You can only have 2 buttons. But try this method:
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Location Selection", "Los Santos\nLas Venturas\nSan Fierro", "Select", "Cancel");
public OnDialogResponse(...)
{
if(dialogid == 1 && response) // Checking if the dialogid == 1 and if he responded positive
{
switch(listitem) // listitem is the options you have on dialog_style_list
{
case 0: { SetPlayerPos(playerid, /* Los Santos Coordinates */); } // He selected the first option
case 1: { SetPlayerPos(playerid, /* Las Venturas Coordinates */); } // 2nd
case 2: { SetPlayerPos(playerid, /* San Fierro Coordinates */); } // 3rd
}
}
return 1;
}