ShowPlayerDialog
From SA-MP Wiki
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.
(playerid, dialogid, style, caption[], info[], button1[], button2[])
| playerid | The ID of the player to show the dialog to. |
| dialogid | An ID to assign this dialog to, so responses can be processed. |
| style | The 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.
- OnDialogResponse: Called when a player responds to a dialog.
