முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

TextDrawGetPos

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

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;
}