Preskoči na vsebino

TextDrawGetString

opozorilo

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

Description

Gets the text of a textdraw.

NameDescription
Text:textidThe ID of the 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 Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(320.0, 240.0, "Hello World!");

new string[16];
TextDrawGetString(gMyTextdraw, string, sizeof(string));
// The `string` now contains 'Hello World!'
return 1;
}