跳到主要內容

IsValidTextDraw

注意

此函式於 omp v1.1.0.2612 版本中新增,在更早的版本中無法使用!

Description​

Checks if a textdraw is valid.

Parameters​

NameDescription
Text:textidThe ID of the textdraw to check.

Return Values​

Returns true if the textdraw is valid, otherwise false.

Example Usage​

new Text:gMyTextdraw;

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

if (IsValidTextDraw(gMyTextdraw))
{
// Textdraw is valid
}
else
{
// Textdraw is not valid
}
return 1;
}