Ugrás a fő tartalomhoz

GetPlayerDialogData

vigyázat

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Get the data of the dialog currently show to the player.

NameDescription
playeridThe ID of the player to get the data.
&DIALOG_STYLE:styleA variable into which to store the style, passed by reference.
title[]An array variable into which to store the title, passed by reference.
titleSizeThe size of the title array.
body[]An array variable into which to store the body, passed by reference.
bodySizeThe size of the body array.
button1[]An array variable into which to store the button1, passed by reference.
button1SizeThe size of the button1 array.
button2[]An array variable into which to store the button2, passed by reference.
button2SizeThe size of the button2 array.

Returns

true - The function executed successfully.

false - The function failed to execute. This means the player is not connected or they don't have a dialog open.

Examples

enum
{
DIALOG_LOGIN
}

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

new
DIALOG_STYLE:style,
title[32],
body[64],
button1[16],
button2[16];

GetPlayerDialogData(playerid, style, title, sizeof(title), body, sizeof(body), button1, sizeof(button1), button2, sizeof(button2));