Chuyển tới nội dung chính

Get3DTextLabelText

cảnh báo

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

Description

Gets the 3D text label text.

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

Examples

new Text3D:gMyLabel;

public OnGameModeInit()
{
gMyLabel = Create3DTextLabel("Hello World!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, false);

new text[16];
Get3DTextLabelText(gMyLabel, text, sizeof(text));
// The `text` will be 'Hello World!'
return 1;
}