29.06.2012, 14:42
Change
into
In this way, to create a one button we typing:
To add one more button:
or
to create three buttons.
\n in this way separates the buttons. In one row could be for example 4 buttons. If the buttons will be more then they are moved to the row below.
+ add colour embedding to buttons like there: https://sampwiki.blast.hk/wiki/Colour_Embedding
And, if this will be changed, the public OnDialogResponse will be return from "response" something like listitem:
first button - 0
second - 1
third - 2
fourth - 3
et cetera
pawn Код:
native ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
pawn Код:
native ShowPlayerDialog(playerid, dialogid, style, caption[], info[], buttons[]);
Quote:
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], "Close"); |
Quote:
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], "Okey\nClose"); |
Quote:
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], "Yes\nNo\nI don't know"); |
\n in this way separates the buttons. In one row could be for example 4 buttons. If the buttons will be more then they are moved to the row below.
+ add colour embedding to buttons like there: https://sampwiki.blast.hk/wiki/Colour_Embedding
And, if this will be changed, the public OnDialogResponse will be return from "response" something like listitem:
first button - 0
second - 1
third - 2
fourth - 3
et cetera