Перейти к основному содержимому

PlayerTextDrawGetString

warning

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

Description

Gets the text of a player-textdraw.

NameDescription
playeridThe ID of the player.
PlayerText:textidThe ID of the player-textdraw to get the text of.
string[]An array into which to store the text, passed by reference.
stringSize = sizeof (string)The size of the string.

Returns

This function does not return any specific values.

Examples

new PlayerText:welcomeText[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Hello World!");
PlayerTextDrawShow(playerid, welcomeText[playerid]);

new string[16];
PlayerTextDrawGetString(playerid, welcomeText[playerid], string, sizeof(string));
// string = "Hello World!"
return 1;
}