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

TextDrawGetColor

எச்சரிக்கை

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

Description​

Gets the text color of a textdraw.

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

Returns​

Returns the text color of the textdraw.

Examples​

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(123.0, 123.0, "Example");
TextDrawColor(gMyTextdraw, 0xFF0000FF);

new color = TextDrawGetColor(gMyTextdraw);
// color = 0xFF0000FF
return 1;
}