diff --git a/frontend/docs/scripting/functions/GetPlayerPoolSize.md b/frontend/docs/scripting/functions/GetPlayerPoolSize.md index fb7d59559c7..6e7aa0571ff 100644 --- a/frontend/docs/scripting/functions/GetPlayerPoolSize.md +++ b/frontend/docs/scripting/functions/GetPlayerPoolSize.md @@ -9,7 +9,7 @@ tags: ["player"] ## Description -Gets the highest playerid currently in use on the server. Note that in SA:MP this function is broken and will return `0` even when there are no players. fixes.inc and open.mp correct this to return `-1`, but also deprecate the function in favour of `MAX_PLAYERS` or `foreach`. +Gets the highest playerid currently in use on the server. Note that in SA:MP this function is broken and will return `0` even when there are no players. open.mp correct this to return `-1`, but also deprecate the function in favour of `MAX_PLAYERS` or `foreach`. ## Examples diff --git a/frontend/docs/scripting/functions/GetVehiclePoolSize.md b/frontend/docs/scripting/functions/GetVehiclePoolSize.md index f1d94771732..253330f4080 100644 --- a/frontend/docs/scripting/functions/GetVehiclePoolSize.md +++ b/frontend/docs/scripting/functions/GetVehiclePoolSize.md @@ -9,7 +9,7 @@ tags: ["vehicle"] ## Description -Gets the highest vehicleid currently in use on the server. Note that in SA:MP this function is broken and will return `0` even when there are no vehicles. fixes.inc and open.mp correct this to return `-1`, but also deprecate the function in favour of `MAX_VEHICLES` or `foreach`. +Gets the highest vehicleid currently in use on the server. Note that in SA:MP this function is broken and will return `0` even when there are no vehicles. open.mp correct this to return `-1`, but also deprecate the function in favour of `MAX_VEHICLES` or `foreach`. ## Examples diff --git a/frontend/docs/scripting/functions/valstr.md b/frontend/docs/scripting/functions/valstr.md index c3ef947f666..9ad3fad1904 100644 --- a/frontend/docs/scripting/functions/valstr.md +++ b/frontend/docs/scripting/functions/valstr.md @@ -33,7 +33,7 @@ valstr(string, value); // string is now "250" :::warning -Passing a high value to this function can cause the server to freeze/crash. Fixes are available. Below is a fix that can be put straight in to your script (before valstr is used anywhere). [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) includes this fix. +Passing a high value to this function can cause the server to freeze/crash. Fixes are available. Below is a fix that can be put straight in to your script (before valstr is used anywhere). open.mp includes this fix. ```c // valstr fix by Slice diff --git a/frontend/docs/scripting/resources/gametextstyles.md b/frontend/docs/scripting/resources/gametextstyles.md index 8585190bee3..3e16ff9e998 100644 --- a/frontend/docs/scripting/resources/gametextstyles.md +++ b/frontend/docs/scripting/resources/gametextstyles.md @@ -82,7 +82,7 @@ You can use the following text styles in game texts. --- -## Text Styles added by [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) +## Text Styles added by [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) / [GameText+](https://github.com/itsneufox/GameText-Plus) | Style | Preview | Description | | -------- | -------------------------------------------------------------------- | -------------------------------------------------- | diff --git a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md index 55ab2d73e04..4adb7106bb6 100644 --- a/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md +++ b/frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md @@ -49,7 +49,7 @@ stock FIX_valstr(dest[], value, bool:pack = false) :::warning -Prosljeđivanje velike vrijednosti ovoj funkciji može dovesti do zamrzavanja / pada sistema. Dostupni su popravci. Ispod je popravak koji se može staviti ravno u vašu skriptu (prije nego što se valstr koristi bilo gdje). fixes.inc uključuje ovaj popravak. +Prosljeđivanje velike vrijednosti ovoj funkciji može dovesti do zamrzavanja / pada sistema. Dostupni su popravci. Ispod je popravak koji se može staviti ravno u vašu skriptu (prije nego što se valstr koristi bilo gdje). open.mp uključuje ovaj popravak. ::: diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPoolSize.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPoolSize.md index e0983b68b7e..bcb94b24193 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPoolSize.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPoolSize.md @@ -9,7 +9,7 @@ tags: ["player"] ## توضیحات -دریافت بالاترین playerid که در حال حاضر در سرور استفاده می‌شود. توجه کنید که در SA:MP این تابع خراب است و حتی زمانی که هیچ بازیکنی نیست `0` برمی‌گرداند. fixes.inc و open.mp این را اصلاح می‌کنند تا `-1` برگرداند، اما همچنین این تابع را به نفع `MAX_PLAYERS` یا `foreach` منسوخ می‌کنند. +دریافت بالاترین playerid که در حال حاضر در سرور استفاده می‌شود. توجه کنید که در SA:MP این تابع خراب است و حتی زمانی که هیچ بازیکنی نیست `0` برمی‌گرداند. open.mp این را اصلاح می‌کنند تا `-1` برگرداند، اما همچنین این تابع را به نفع `MAX_PLAYERS` یا `foreach` منسوخ می‌کنند. ## مثال‌ها diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehiclePoolSize.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehiclePoolSize.md index 5f234fb3964..247748d6d30 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehiclePoolSize.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehiclePoolSize.md @@ -9,7 +9,7 @@ tags: ["vehicle"] ## توضیحات -بالاترین vehicleid که در حال حاضر در سرور استفاده می‌شه رو دریافت می‌کنه. توجه کن که در SA:MP این تابع خرابه و حتی وقتی هیچ وسیله نقلیه‌ای نیست `0` برمی‌گردونه. fixes.inc و open.mp این رو درست کردن که `-1` برگردونه، اما همچنین این تابع رو deprecated کردن به نفع `MAX_VEHICLES` یا `foreach`. +بالاترین vehicleid که در حال حاضر در سرور استفاده می‌شه رو دریافت می‌کنه. توجه کن که در SA:MP این تابع خرابه و حتی وقتی هیچ وسیله نقلیه‌ای نیست `0` برمی‌گردونه. open.mp این رو درست کردن که `-1` برگردونه، اما همچنین این تابع رو deprecated کردن به نفع `MAX_VEHICLES` یا `foreach`. ## مثال‌ها diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md index 85a52b34b7c..71a3b3e7416 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md @@ -33,7 +33,7 @@ valstr(string, value); // رشته حالا "250" است :::warning -ارسال مقدار بالا به این تابع می‌تواند باعث فریز/کرش سرور شود. راه‌حل‌هایی موجود است. در زیر راه‌حلی است که می‌تواند مستقیماً در اسکریپت شما قرار گیرد (قبل از اینکه valstr در جایی استفاده شود). [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) این راه‌حل را شامل می‌شود. +ارسال مقدار بالا به این تابع می‌تواند باعث فریز/کرش سرور شود. راه‌حل‌هایی موجود است. در زیر راه‌حلی است که می‌تواند مستقیماً در اسکریپت شما قرار گیرد (قبل از اینکه valstr در جایی استفاده شود). open.mp این راه‌حل را شامل می‌شود. ```c // راه‌حل valstr توسط Slice diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md index 46c92fc5354..70421ffaa2c 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md @@ -24,21 +24,11 @@ Wordt altijd als eerste aangeroepen in filterscripts. ## Redenen -| ID | Reden | Details | -| --- | ------------- | ----------------------------------------------------------------------------------------------- | -| 0 | Timeout/Crash | De verbinding van de speler ging verloren. Hun game crashte of hun netwerk had een fout. | -| 1 | Quit | De speler stopte opzettelijk, via het /quit (/q) commando of via het pauze-menu. | -| 2 | Kick/Ban | De speler werd gekicked of gebanned door de server. | -| 3 | Custom | Gebruikt door enkele libraries. Gereserveerd voor private gebruik van modes. | -| 4 | Mode End | De huidige mode eindigt, dus alle spelers worden eruit gehaald (ze zijn nog steeds op de server). | - -:::warning - -Reden 3 werd oorspronkelijk toegevoegd in SA:MP door [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) - -Redenen 3 en 4 werden toegevoegd door de Open Multiplayer server. - -::: +| ID | Reden | Details | +| --- | ------------- | ---------------------------------------------------------------------------------------- | +| 0 | Timeout/Crash | De verbinding van de speler ging verloren. Hun game crashte of hun netwerk had een fout. | +| 1 | Quit | De speler stopte opzettelijk, via het /quit (/q) commando of via het pauze-menu. | +| 2 | Kick/Ban | De speler werd gekicked of gebanned door de server. | ## Voorbeelden @@ -51,13 +41,11 @@ public OnPlayerDisconnect(playerid, reason) GetPlayerName(playerid, playerName, MAX_PLAYER_NAME); - new szDisconnectReason[5][] = + new szDisconnectReason[3][] = { "Timeout/Crash", "Quit", - "Kick/Ban", - "Custom", - "Mode End" + "Kick/Ban" }; format(szString, sizeof szString, "%s left the server (%s).", playerName, szDisconnectReason[reason]); diff --git a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md index 307493b98e9..0a7c8e4f0d1 100644 --- a/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md +++ b/frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md @@ -57,7 +57,7 @@ Gebruik niet te veel kleuren/specials in één gametext; dit kan clients laten c | Stijl 5 | ![](https://assets.open.mp/assets/images/gameTextStyles/style5.png) | ~3s zichtbaar; weigert bij spam (gefixet in fixes.inc) | | Stijl 6 | ![](https://assets.open.mp/assets/images/gameTextStyles/style6.png) | N/B | -## Stijlen toegevoegd door [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) +## Stijlen toegevoegd door [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) / [GameText+](https://github.com/itsneufox/GameText-Plus) | Stijl | Voorbeeld | Omschrijving | | -------- | ------------------------------------------------------------------- | ----------------------------------- | diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md index 5fb05f24da8..a154ce775ea 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md @@ -79,7 +79,7 @@ Você pode usar os seguintes estilos de texto em gametext. --- -## Estilos de texto adicionados por [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) +## Estilos de texto adicionados por [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) / [GameText+](https://github.com/itsneufox/GameText-Plus) | Estilo | Pré-visualização | Descrição | | -------- | --------------------------------------- | -------------------------------------------------- | diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md index d07024ab436..a6bd11dbe72 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md @@ -49,7 +49,7 @@ stock FIX_valstr(dest[], value, bool:pack = false) :::warning -Passing a high value to this function can cause the server to freeze/crash. Fixes are available. Below is a fix that can be put straight in to your script (before valstr is used anywhere). fixes.inc includes this fix. +Passing a high value to this function can cause the server to freeze/crash. Fixes are available. Below is a fix that can be put straight in to your script (before valstr is used anywhere). open.mp includes this fix. ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md index 305507b00e3..62826732569 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md @@ -50,7 +50,7 @@ stock FIX_valstr(dest[], value, bool:pack = false) #define valstr FIX_valstr ``` -完整修复方案参见[fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) +完整修复方案参见 open.mp ::: diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md index 1c8b55b97a8..6a59b4ab034 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md @@ -68,9 +68,7 @@ description: 文本绘图与游戏文本的样式说明 --- -## fixes.inc 扩展样式 - -通过[fixes.inc](https://github.com/pawn-lang/sa-mp-fixes)扩展的样式: +## [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) / [GameText+](https://github.com/itsneufox/GameText-Plus) 扩展样式 | 样式 | 预览图 | 原型参照 | | ------- | -------------------------------------------------------------------- | ------------------------------ |