Ugrás a fő tartalomhoz

TextDrawGetTextSize

vigyázat

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

Description

Gets the X axis and Y axis of the textdraw.

NameDescription
Text:textidThe ID of the textdraw to get text size of.
&Float:widthA float variable into which to store width, passed by reference.
&Float:heightA float variable into which to store height, passed by reference.

Returns

This function does not return any specific values.

Examples

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(100.0, 33.0, "Example TextDraw");
TextDrawTextSize(gMyTextdraw, 2.0, 3.6);

new Float:width, Float:height;
TextDrawGetTextSize(gMyTextdraw, width, height);
// The `width` will be '2.0' and `height` will be '3.6'
return 1;
}