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

GetPlayer3DTextLabelText

எச்சரிக்கை

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

Description​

Gets the player's 3D text label text.

NameDescription
playeridThe ID of the player.
PlayerText3D:textidThe ID of the player's 3D text label to get the text of.
text[]An array into which to store the text, passed by reference.
lenThe length of the text that should be stored.

Examples​

new PlayerText3D:playerTextId;
new Float:X, Float:Y, Float:Z;
new text[16];

GetPlayerPos(playerid, X, Y, Z);
playerTextId = CreatePlayer3DTextLabel(playerid, "Hello World!", 0x008080FF, X, Y, Z, 40.0);

GetPlayer3DTextLabelText(playerid, playerTextId, text, sizeof(text));
// text = "Hello World!"