Ugrás a fő tartalomhoz

PlayerTextDrawGetAlignment

vigyázat

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

Description

Gets the text alignment of a player-textdraw.

NameDescription
playeridThe ID of the player.
PlayerText:textidThe ID of the player-textdraw to get the alignment of.

Returns

Returns the player-textdraw text alignment.

Examples

new PlayerText:gMyTextdraw[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
gMyTextdraw[playerid] = CreatePlayerTextDraw(playerid, 320.0, 425.0, "This is an example textdraw");
PlayerTextDrawAlignment(playerid, gMyTextdraw[playerid], TEXT_DRAW_ALIGN_CENTER);

new TEXT_DRAW_ALIGN:align = PlayerTextDrawGetAlignment(playerid, gMyTextdraw[playerid]);
// align = TEXT_DRAW_ALIGN_CENTER
return 1;
}