---
title: "GetGameText | open.mp"
description: "تمام اطلاعات مربوط به استایل game text داده شده رو برمی‌گردونه."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/GetGameText
language: fa
---

# GetGameText

هشدار

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

## توضیحات

تمام اطلاعات مربوط به استایل game text داده شده رو برمی‌گردونه.

| نام | توضیحات |
| --- | --- |
| playerid | آیدی بازیکنی که می‌خوای چرخشش رو دریافت کنی. |
| style | [استایل](https://omp.itsneufox.com/fa/docs/scripting/resources/gametextstyles) متنی که می‌خوای دیتاش رو دریافت کنی. |
| message\[\] | آرایه برگشتی برای رشته متن. |
| len = sizeof (message) | اندازه خروجی. |
| time | زمانی که gametext در اصل برای نمایش داده شده بود. |
| remaining | مقدار باقی‌مانده از اون زمان. |

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

true - تابع با موفقیت اجرا شد.

false - تابع در اجرا شکست خورد. یعنی بازیکن مشخص شده وجود نداره یا استایل نامعتبره.

## مثال‌ها

```c
public OnPlayerConnect(playerid)
{
    GameTextForPlayer(playerid, "Welcome to the server!", 5000, 3);

    new
        message[32],
        time,
        remaining;

    GetGameText(playerid, 3, message, sizeof(message), time, remaining);
    // message = "Welcome to the server!"
    // time = 5000
    return 1;
}
```

## تابع‌های مرتبط

-   [GameTextForPlayer](https://omp.itsneufox.com/fa/docs/scripting/functions/GameTextForPlayer): gametext رو برای یک بازیکن نمایش می‌ده.
-   [HideGameTextForPlayer](https://omp.itsneufox.com/fa/docs/scripting/functions/HideGameTextForPlayer): نمایش استایل gametext رو برای یک بازیکن متوقف می‌کنه.
-   [GameTextForAll](https://omp.itsneufox.com/fa/docs/scripting/functions/GameTextForAll): gametext رو برای همه بازیکنا نمایش می‌ده.
-   [HideGameTextForAll](https://omp.itsneufox.com/fa/docs/scripting/functions/HideGameTextForAll): نمایش استایل gametext رو برای همه بازیکنا متوقف می‌کنه.
-   [HasGameText](https://omp.itsneufox.com/fa/docs/scripting/functions/HasGameText): آیا بازیکن در حال حاضر متن در استایل gametext داده شده رو داره؟
