ข้ามไปยังเนื้อหาหลัก

TextDrawGetAlignment

คำเตือน

ฟังก์ชันนี้ถูกเพิ่มใน omp v1.1.0.2612 และจะไม่ทำงานในเวอร์ชันก่อนหน้า!

Description​

Gets the text alignment of a textdraw.

NameDescription
Text:textidThe ID of the textdraw to get the alignment of.

Returns​

Returns the textdraw text alignment.

Examples​

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(320.0, 425.0, "This is an example textdraw");
TextDrawAlignment(gMyTextdraw, TEXT_DRAW_ALIGN_CENTER);

new TEXT_DRAW_ALIGN:align = TextDrawGetAlignment(gMyTextdraw);
// align = TEXT_DRAW_ALIGN_CENTER
return 1;
}