ShowPlayerDialog

From SA-MP Wiki

Jump to: navigation, search

ShowPlayerDialog


Warning: This function was added in SA-MP version 0.3. It is not available in previous versions.


Shows the player a synchronous dialog box.


Parameters:
(playerid, dialogid, style, caption[], info[], button1[], button2[])
playeridThe ID of the player to show the dialog to.
dialogidAn ID to assign this dialog to, so responses can be processed.
styleThe style of the dialog.
caption[]The title at the top of the dialog.
info[]Text to display on the dialog You can use \n to start a new line and \t to tabulate.
button1[]The text on the left button.
button2[]The text on the right button.


This function does not return a specific value.


ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Enter your password below:","Login","Cancel");

Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.

Personal tools
In other languages