Ugrás a fő tartalomhoz

TextDrawGetPos

vigyázat

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

Description

Gets the position (in-screen x & y) of a textdraw.

NameDescription
Text:textidThe ID of the textdraw to get the position of.
&Float:xA float variable into which to store X coordinate, passed by reference.
&Float:yA float variable into which to store Y coordinate, passed by reference.

Examples

new Text:gMyTextdraw;

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

new Float:x, Float:y;
TextDrawGetPos(gMyTextdraw, x, y);
// The `x` will be '100.0' and `y` will be '33.0'
return 1;
}