Skip to content

Commit 3f11f5e

Browse files
authored
Merge pull request #1193 from NexiusTailer/patch-1
Minor changes and tweaks
2 parents 33a6349 + 6bc66e1 commit 3f11f5e

14 files changed

Lines changed: 20 additions & 34 deletions

File tree

frontend/docs/scripting/functions/GetPlayerPoolSize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags: ["player"]
99

1010
## Description
1111

12-
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`.
12+
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`.
1313

1414
## Examples
1515

frontend/docs/scripting/functions/GetVehiclePoolSize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags: ["vehicle"]
99

1010
## Description
1111

12-
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`.
12+
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`.
1313

1414
## Examples
1515

frontend/docs/scripting/functions/valstr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ valstr(string, value); // string is now "250"
3333
3434
:::warning
3535
36-
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.
36+
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.
3737
3838
```c
3939
// valstr fix by Slice

frontend/docs/scripting/resources/gametextstyles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ You can use the following text styles in game texts.
8282

8383
---
8484

85-
## Text Styles added by [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes)
85+
## Text Styles added by [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) / [GameText+](https://github.com/itsneufox/GameText-Plus)
8686

8787
| Style | Preview | Description |
8888
| -------- | -------------------------------------------------------------------- | -------------------------------------------------- |

frontend/i18n/bs/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ stock FIX_valstr(dest[], value, bool:pack = false)
4949
5050
:::warning
5151
52-
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.
52+
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.
5353
5454
:::
5555

frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerPoolSize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags: ["player"]
99

1010
## توضیحات
1111

12-
دریافت بالاترین playerid که در حال حاضر در سرور استفاده می‌شود. توجه کنید که در SA:MP این تابع خراب است و حتی زمانی که هیچ بازیکنی نیست `0` برمی‌گرداند. fixes.inc و open.mp این را اصلاح می‌کنند تا `-1` برگرداند، اما همچنین این تابع را به نفع `MAX_PLAYERS` یا `foreach` منسوخ می‌کنند.
12+
دریافت بالاترین playerid که در حال حاضر در سرور استفاده می‌شود. توجه کنید که در SA:MP این تابع خراب است و حتی زمانی که هیچ بازیکنی نیست `0` برمی‌گرداند. open.mp این را اصلاح می‌کنند تا `-1` برگرداند، اما همچنین این تابع را به نفع `MAX_PLAYERS` یا `foreach` منسوخ می‌کنند.
1313

1414
## مثال‌ها
1515

frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehiclePoolSize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tags: ["vehicle"]
99

1010
## توضیحات
1111

12-
بالاترین vehicleid که در حال حاضر در سرور استفاده می‌شه رو دریافت می‌کنه. توجه کن که در SA:MP این تابع خرابه و حتی وقتی هیچ وسیله نقلیه‌ای نیست `0` برمی‌گردونه. fixes.inc و open.mp این رو درست کردن که `-1` برگردونه، اما همچنین این تابع رو deprecated کردن به نفع `MAX_VEHICLES` یا `foreach`.
12+
بالاترین vehicleid که در حال حاضر در سرور استفاده می‌شه رو دریافت می‌کنه. توجه کن که در SA:MP این تابع خرابه و حتی وقتی هیچ وسیله نقلیه‌ای نیست `0` برمی‌گردونه. open.mp این رو درست کردن که `-1` برگردونه، اما همچنین این تابع رو deprecated کردن به نفع `MAX_VEHICLES` یا `foreach`.
1313

1414
## مثال‌ها
1515

frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/valstr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ valstr(string, value); // رشته حالا "250" است
3333
3434
:::warning
3535
36-
ارسال مقدار بالا به این تابع می‌تواند باعث فریز/کرش سرور شود. راه‌حل‌هایی موجود است. در زیر راه‌حلی است که می‌تواند مستقیماً در اسکریپت شما قرار گیرد (قبل از اینکه valstr در جایی استفاده شود). [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) این راه‌حل را شامل می‌شود.
36+
ارسال مقدار بالا به این تابع می‌تواند باعث فریز/کرش سرور شود. راه‌حل‌هایی موجود است. در زیر راه‌حلی است که می‌تواند مستقیماً در اسکریپت شما قرار گیرد (قبل از اینکه valstr در جایی استفاده شود). open.mp این راه‌حل را شامل می‌شود.
3737
3838
```c
3939
// راه‌حل valstr توسط Slice

frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerDisconnect.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,11 @@ Wordt altijd als eerste aangeroepen in filterscripts.
2424

2525
## Redenen
2626

27-
| ID | Reden | Details |
28-
| --- | ------------- | ----------------------------------------------------------------------------------------------- |
29-
| 0 | Timeout/Crash | De verbinding van de speler ging verloren. Hun game crashte of hun netwerk had een fout. |
30-
| 1 | Quit | De speler stopte opzettelijk, via het /quit (/q) commando of via het pauze-menu. |
31-
| 2 | Kick/Ban | De speler werd gekicked of gebanned door de server. |
32-
| 3 | Custom | Gebruikt door enkele libraries. Gereserveerd voor private gebruik van modes. |
33-
| 4 | Mode End | De huidige mode eindigt, dus alle spelers worden eruit gehaald (ze zijn nog steeds op de server). |
34-
35-
:::warning
36-
37-
Reden 3 werd oorspronkelijk toegevoegd in SA:MP door [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes)
38-
39-
Redenen 3 en 4 werden toegevoegd door de Open Multiplayer server.
40-
41-
:::
27+
| ID | Reden | Details |
28+
| --- | ------------- | ---------------------------------------------------------------------------------------- |
29+
| 0 | Timeout/Crash | De verbinding van de speler ging verloren. Hun game crashte of hun netwerk had een fout. |
30+
| 1 | Quit | De speler stopte opzettelijk, via het /quit (/q) commando of via het pauze-menu. |
31+
| 2 | Kick/Ban | De speler werd gekicked of gebanned door de server. |
4232

4333
## Voorbeelden
4434

@@ -51,13 +41,11 @@ public OnPlayerDisconnect(playerid, reason)
5141

5242
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
5343

54-
new szDisconnectReason[5][] =
44+
new szDisconnectReason[3][] =
5545
{
5646
"Timeout/Crash",
5747
"Quit",
58-
"Kick/Ban",
59-
"Custom",
60-
"Mode End"
48+
"Kick/Ban"
6149
};
6250

6351
format(szString, sizeof szString, "%s left the server (%s).", playerName, szDisconnectReason[reason]);

frontend/i18n/nl/docusaurus-plugin-content-docs/current/scripting/resources/gametextstyles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Gebruik niet te veel kleuren/specials in één gametext; dit kan clients laten c
5757
| Stijl 5 | ![](https://assets.open.mp/assets/images/gameTextStyles/style5.png) | ~3s zichtbaar; weigert bij spam (gefixet in fixes.inc) |
5858
| Stijl 6 | ![](https://assets.open.mp/assets/images/gameTextStyles/style6.png) | N/B |
5959

60-
## Stijlen toegevoegd door [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes)
60+
## Stijlen toegevoegd door [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes) / [GameText+](https://github.com/itsneufox/GameText-Plus)
6161

6262
| Stijl | Voorbeeld | Omschrijving |
6363
| -------- | ------------------------------------------------------------------- | ----------------------------------- |

0 commit comments

Comments
 (0)