Ugrás a fő tartalomhoz

PlayerTextDrawDestroy

Description

Destroy a player-textdraw.

NameDescription
playeridThe ID of the player who's player-textdraw to destroy.
PlayerText:textidThe ID of the textdraw to destroy.

Returns

This function does not return any specific values.

Examples

new PlayerText:pTextdraw[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
pTextdraw[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Example Text");
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
PlayerTextDrawDestroy(playerid, pTextdraw[playerid]);
return 1;
}