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

TextDrawIsProportional

எச்சரிக்கை

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

Description​

Checks if a textdraw is proportional.

Parameters​

NameDescription
Text:textidThe ID of the textdraw to check.

Return Values​

Returns true if the textdraw is proportional, otherwise false.

Example Usage​

new Text:gMyTextdraw;

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

if (TextDrawIsProportional(gMyTextdraw))
{
// Textdraw is proportional
}
else
{
// Textdraw is not proportional
}
return 1;
}