Ugrás a fő tartalomhoz

IsValidPlayerTextDraw

vigyázat

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

Description

Checks if a player-textdraw is valid.

Parameters

NameDescription
playeridThe ID of the player.
PlayerText:textidThe ID of the player-textdraw to check.

Return Values

Returns true if the player-textdraw is valid, otherwise false.

Example Usage

new PlayerText:welcomeText[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my OPEN.MP server");

if (IsValidPlayerTextDraw(playerid, welcomeText[playerid]))
{
// Player-Textdraw is valid
}
else
{
// Player-Textdraw is not valid
}
}