Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/GetPlayerPoolSize.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/GetVehiclePoolSize.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/valstr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/resources/gametextstyles.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| -------- | -------------------------------------------------------------------- | -------------------------------------------------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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` منسوخ می‌کنند.

## مثال‌ها

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

## مثال‌ها

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| -------- | ------------------------------------------------------------------- | ----------------------------------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| -------- | --------------------------------------- | -------------------------------------------------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) 扩展样式

| 样式 | 预览图 | 原型参照 |
| ------- | -------------------------------------------------------------------- | ------------------------------ |
Expand Down