help with making a dialog box
#1

i need help with creating dialog box
one similar to this in which player selects what he wants to do

please help me by giving all the details
thanks
Reply
#2

All details are located here:
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Reply
#3

Quote:
Originally Posted by Mean
Посмотреть сообщение
one more help
please tell me the use and meaning of enum in the link you have just given
Reply
#4

Quote:
Originally Posted by akki
Посмотреть сообщение
one more help
please tell me the use and meaning of enum in the link you have just given
You won't need the enums, it's just an example script.

It should look like something like this:

Код:
ShowPlayerDialog(playerid, dialogid, style, header, items, button1, button2);

Playerid = The player that the dialog needs to be shown to
dialogid = An ID you assign to the dialog, to be used under OnDialogResponse
style = There are 4 styles: DIALOG_STYLE_MSGBOX: displays a messagebox, DIALOG_STYLE_INPUT: let users input a text/number DIALOG_STYLE_PASSWORD: let users put in a text/number, but you can't see it (only ***) & DIALOG_STYLE_LIST: Displays a list of options to the user
header = Title of the header, should be inside a " "
items = items/message you want to show to the player
button1 = the left button
button2 = the right button
Reply
#5

ill show you how to make same like that just change the message to message you want to.

pawn Код:
ShowPlayerDialog(playerid,900,DIALOG_STYLE_LIST,"DIALOG_STYLE_LIST","Item 1\nItem 2\nItem 3","Button1","Button2");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)