Skip to content

Commit 06f191c

Browse files
committed
General tweaks, correct letter case for some files
1 parent 30c17ba commit 06f191c

File tree

92 files changed

+144
-12846
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+144
-12846
lines changed

frontend/blog/2022-09-08-server-beta-9.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22
slug: server-beta-9
3-
title: SA-MP 0.3DL compatibility plus other added features and bug fixes - SERVER BETA RELEASE 9
3+
title: SA-MP 0.3.DL compatibility plus other added features and bug fixes - SERVER BETA RELEASE 9
44
authors: potassium
55
---
66

7-
We've just released open.mp server beta 9, bringing major improvements, fixes, and the highly anticipated SA:MP 0.3DL support! This update includes new features, better plugin compatibility, and enhanced server configuration options.
7+
We've just released open.mp server beta 9, bringing major improvements, fixes, and the highly anticipated SA:MP 0.3.DL support! This update includes new features, better plugin compatibility, and enhanced server configuration options.
88

99
<!-- truncate -->
1010

1111
Posted in our Discord server announcements channel by kseny ([discord.gg/samp](https://discord.gg/samp))
1212

1313
Hello everyone
1414

15-
We have just released open.mp server beta 9, fixing several reported issues and adding several new features. The most notable change being - SA:MP 0.3DL support. You can now run 0.3.7 and 0.3.DL compatible servers from the same binary.
15+
We have just released open.mp server beta 9, fixing several reported issues and adding several new features. The most notable change being - SA:MP 0.3.DL support. You can now run 0.3.7 and 0.3.DL compatible servers from the same binary.
1616

1717
## Other Changes
1818

frontend/docs/scripting/callbacks/OnPlayerDisconnect.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ It is always called first in filterscripts.
2929
| 0 | Timeout/Crash | The player's connection was lost. Either their game crashed or their network had a fault. |
3030
| 1 | Quit | The player purposefully quit, either using the /quit (/q) command or via the pause menu. |
3131
| 2 | Kick/Ban | The player was kicked or banned by the server. |
32-
| 3 | Custom | Used by some libraries. Reserved for modes' private uses. |
33-
| 4 | Mode End | The current mode is ending so disconnecting all players from it (they are still on the server). |
34-
35-
:::warning
36-
37-
Reason 3 was originally added in SA:MP by [fixes.inc](https://github.com/pawn-lang/sa-mp-fixes)
38-
39-
Reasons 3 and 4 were added by the Open Multiplayer server.
40-
41-
:::
4232

4333
## Examples
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/docs/scripting/functions/ChangeVehicleColor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Change a vehicle's primary and secondary colors.
1212
| Name | Description |
1313
| --------- | ---------------------------------------------- |
1414
| vehicleid | The ID of the vehicle to change the colors of. |
15-
| color1 | The new vehicle's primary Color ID. |
16-
| color2 | The new vehicle's secondary Color ID. |
15+
| color1 | The new vehicle's primary color ID. |
16+
| color2 | The new vehicle's secondary color ID. |
1717

1818
## Returns
1919

frontend/docs/scripting/functions/ChangeVehiclePaintjob.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Change a vehicle's paintjob (for plain colors see [ChangeVehicleColor](ChangeVeh
1212
| Name | Description |
1313
| --------- | -------------------------------------------------------------------------------------- |
1414
| vehicleid | The ID of the vehicle to change the paintjob of. |
15-
| paintjob | The ID of the [Paintjob](../resources/paintjobs) to apply. Use 3 to remove a paintjob. |
15+
| paintjob | The ID of the [paintjob](../resources/paintjobs) to apply. Use 3 to remove a paintjob. |
1616

1717
## Returns
1818

frontend/docs/scripting/functions/GetTickCount.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tags: ["time"]
77

88
## Description
99

10-
Returns a value which increases every millisecond. The absolute value returned is undefined and varies between systems, it should only be used to compare two points in time.
10+
Returns a value which increases every millisecond, it should be used to compare two points in time.
1111

1212
## Examples
1313

@@ -58,7 +58,7 @@ If `start` is very high this code will wrap around and may cause the check to pa
5858
new start = GetTickCount();
5959
// Long code.
6060
new end = GetTickCount();
61-
if (2000 > end - start)
61+
if (end - start < 2000)
6262
{
6363
// The code took less than two seconds.
6464
}
@@ -70,4 +70,4 @@ Simply rearranging the comparison such that `start` and `end` are on the same si
7070

7171
## Related Functions
7272

73-
- [Tickcount](Tickcount): Get the uptime of the actual server.
73+
- [tickcount](tickcount): Get the uptime of the actual server.

frontend/docs/scripting/functions/KillTimer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public OnPlayerConnect(playerid)
2929
return 1;
3030
}
3131

32-
public OnPlayerDisconnect(playerid)
32+
public OnPlayerDisconnect(playerid, reason)
3333
{
3434
KillTimer(gConnectTimer[playerid]);
3535
gConnectTimer[playerid] = 0;

frontend/docs/scripting/functions/TextDrawSetPreviewVehCol.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ If a vehicle model is used in a 3D preview textdraw, this sets the two colour va
1212
| Name | Description |
1313
| ----------- | ------------------------------------------------------------------ |
1414
| Text:textid | The textdraw id that is set to display a 3D vehicle model preview. |
15-
| colour1 | The primary Color ID to set the vehicle to. |
16-
| colour2 | The secondary Color ID to set the vehicle to. |
15+
| colour1 | The primary color ID to set the vehicle to. |
16+
| colour2 | The secondary color ID to set the vehicle to. |
1717

1818
## Returns
1919

frontend/docs/scripting/functions/TextDrawSetPreviewVehicleColours.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ If a vehicle model is used in a 3D preview textdraw, this sets the two colour va
1414
| Name | Description |
1515
| ----------- | ------------------------------------------------------------------ |
1616
| Text:textid | The textdraw id that is set to display a 3D vehicle model preview. |
17-
| colour1 | The primary Color ID to set the vehicle to. |
18-
| colour2 | The secondary Color ID to set the vehicle to. |
17+
| colour1 | The primary color ID to set the vehicle to. |
18+
| colour2 | The secondary color ID to set the vehicle to. |
1919

2020
## Returns
2121

frontend/docs/scripting/functions/Tickcount.md renamed to frontend/docs/scripting/functions/tickcount.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: tickcount
33
sidebar_label: tickcount
4-
description: This function can be used as a replacement for GetTickCount, as it returns the number of milliseconds since the start-up of the server.
4+
description: Returns the number of milliseconds since the start-up of the server.
55
tags: ["time"]
66
---
77

@@ -21,4 +21,4 @@ The number of milliseconds since start-up of the system. For a 32-bit cell, this
2121

2222
## Related Functions
2323

24-
- [GetTickCount](GetTickCount): Returns a value which increases every millisecond.
24+
- [GetTickCount](GetTickCount): Get the uptime of the server.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: GetTickCount
33
sidebar_label: GetTickCount
4-
description: Daje vrijeme trajanja stvarnog servera (ne SA-MP servera) u milisekundama.
4+
description: Daje vrijeme trajanja servera u milisekundama.
55
tags: []
66
---
77

88
## Deskripcija
99

10-
Daje vrijeme trajanja stvarnog servera (ne SA-MP servera) u milisekundama.
10+
Daje vrijeme trajanja servera u milisekundama.
1111

1212
## Primjeri
1313

@@ -25,16 +25,16 @@ public OnPlayerConnect(playerid)
2525
2626
:::tip
2727
28-
Jedna uobičajena upotreba GetTickCount je za benčmarking. Pomoću njega se može izračunati koliko vremena je potrebno nekom izvršnom kodu. Pogledajte primer za primer.
28+
Jedna uobičajena upotreba GetTickCount je za benčmarking. Pomoću njega se može izračunati koliko vremena je potrebno nekom izvršnom kodu.
2929
3030
:::
3131
3232
:::warning
3333
34-
GetTickCount će uzrokovati probleme na serverima s vremenom neprekidnog rada duže od 24 dana, jer će GetTickCount na kraju iskriviti ograničenja cijele veličine. Provjeri [ovaj paket](https://github.com/ScavengeSurvive/tick-difference) za rješenje.
34+
GetTickCount će uzrokovati probleme na serverima s vremenom neprekidnog rada duže od 24 dana, jer će GetTickCount na kraju iskriviti ograničenja cijele veličine.
3535
3636
:::
3737
3838
## Srodne Funkcije
3939
40-
- [Tickcount](Tickcount): Nabavite vrijeme rada stvarnog servera.
40+
- [tickcount](tickcount): Nabavite vrijeme rada stvarnog servera.

0 commit comments

Comments
 (0)