---
title: "PlayerTextDrawGetString | open.mp"
description: "متن یک player-textdraw رو برمی‌گردونه."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawGetString
language: fa
---

# PlayerTextDrawGetString

هشدار

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

## توضیحات

متن یک player-textdraw رو برمی‌گردونه.

| اسم | توضیحات |
| --- | --- |
| playerid | شناسه بازیکن. |
| PlayerText:textid | شناسه player-textdraw که می‌خوای متن رو ازش بگیری. |
| string\[\] | آرایه‌ای برای ذخیره متن، که به صورت reference پاس داده میشه. |
| stringSize = sizeof (string) | اندازه رشته. |

## مقدار برگشتی

این تابع مقدار خاصی برنمی‌گردونه.

## مثال‌ها

```c
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;
}
```

## توابع مرتبط

-   [CreatePlayerTextDraw](https://omp.itsneufox.com/fa/docs/scripting/functions/CreatePlayerTextDraw): ساخت یک player-textdraw.
-   [PlayerTextDrawDestroy](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawDestroy): پاک کردن یک player-textdraw.
-   [PlayerTextDrawSetString](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetString): تغییر متن یک player-textdraw.
-   [PlayerTextDrawColor](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawColor): تنظیم رنگ متن در player-textdraw.
-   [PlayerTextDrawBoxColor](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawBoxColor): تنظیم رنگ جعبه player-textdraw.
-   [PlayerTextDrawBackgroundColor](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawBackgroundColor): تنظیم رنگ background یک player-textdraw.
-   [PlayerTextDrawAlignment](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawAlignment): تنظیم alignment یک player-textdraw.
-   [PlayerTextDrawFont](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawFont): تنظیم فونت یک player-textdraw.
-   [PlayerTextDrawLetterSize](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawLetterSize): تنظیم اندازه حروف متن در player-textdraw.
-   [PlayerTextDrawTextSize](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawTextSize): تنظیم اندازه جعبه player-textdraw (یا ناحیه قابل کلیک برای PlayerTextDrawSetSelectable).
-   [PlayerTextDrawSetOutline](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetOutline): روشن/خاموش کردن outline در player-textdraw.
-   [PlayerTextDrawSetShadow](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetShadow): تنظیم سایه در player-textdraw.
-   [PlayerTextDrawSetProportional](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetProportional): تنظیم فاصله متن در player-textdraw با نسبت متناسب.
-   [PlayerTextDrawUseBox](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawUseBox): روشن/خاموش کردن جعبه در player-textdraw.
-   [PlayerTextDrawShow](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawShow): نمایش یک player-textdraw.
-   [PlayerTextDrawHide](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawHide): مخفی کردن یک player-textdraw.
-   [IsPlayerTextDrawVisible](https://omp.itsneufox.com/fa/docs/scripting/functions/IsPlayerTextDrawVisible): چک می‌کنه که آیا player-textdraw برای بازیکن نمایش داده میشه یا نه.
-   [IsValidPlayerTextDraw](https://omp.itsneufox.com/fa/docs/scripting/functions/IsValidPlayerTextDraw): چک می‌کنه که آیا player-textdraw معتبره یا نه.
-   [TextDrawGetString](https://omp.itsneufox.com/fa/docs/scripting/functions/TextDrawGetString): متن یک textdraw رو برمی‌گردونه.
