Skip to content

Commit 58680fd

Browse files
authored
Merge pull request #1171 from Gvwyn/master
fixing a few tilde symbols that are messing up formatting
2 parents a2453ae + 1daa77f commit 58680fd

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

frontend/docs/scripting/functions/AddMenuItem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public OnGameModeInit()
4141
- Crashes when passed an invalid menu ID.
4242
- You can only have 12 items per menu (13th goes to the right side of the header of column name (colored), 14th and higher not display at all).
4343
- You can only use 2 columns (0 and 1).
44-
- You can only add 8 color codes per one item (~r~, ~g~ etc.). Maximum length of menu item is 31 symbols.
44+
- You can only add 8 color codes per one item (`~r~`, `~g~` etc.). Maximum length of menu item is 31 symbols.
4545

4646
:::
4747

frontend/docs/scripting/functions/CreatePlayerTextDraw.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Player-textdraws are automatically destroyed when a player disconnects.
4949
5050
:::warning
5151
52-
Keyboard key mapping codes (such as ~k~~VEHICLE_ENTER_EXIT~) Doesn't work beyond 255th character.
52+
Keyboard key mapping codes (such as `~k~~VEHICLE_ENTER_EXIT~`) Doesn't work beyond 255th character.
5353
5454
:::
5555

frontend/docs/scripting/functions/GameTextForAll.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason)
4646
4747
:::warning
4848
49-
Do note that the players may crash because of odd number of tilde (~) symbols used in the game text. Using color codes (e.g. ~r~) beyond the 255th character may crash the client.
49+
Do note that the players may crash because of odd number of tilde (~) symbols used in the game text. Using color codes (e.g. `~r~`) beyond the 255th character may crash the client.
5050
5151
:::
5252

frontend/docs/scripting/functions/GameTextForPlayer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason)
4545
4646
:::warning
4747
48-
Do note that the players may crash because of odd number of tilde (~) symbols used in the game text. Using color codes (e.g. ~r~) beyond the 255th character may crash the client.
48+
Do note that the players may crash because of odd number of tilde (~) symbols used in the game text. Using color codes (e.g. `~r~`) beyond the 255th character may crash the client.
4949
5050
Also, a blank space at end of the string may result in faliure. For example: `"Headshot "` results in failure. Instead it should be `"Headshot"` or `"Headshot_"`.
5151

frontend/docs/scripting/functions/TextDrawCreate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public OnPlayerConnect(playerid)
5858
5959
:::warning
6060
61-
Keyboard key mapping codes (such as ~k~~VEHICLE_ENTER_EXIT~) don't work beyond 255th character.
61+
Keyboard key mapping codes (such as `~k~~VEHICLE_ENTER_EXIT~`) don't work beyond 255th character.
6262
6363
:::
6464

frontend/docs/scripting/resources/gametextstyles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Mainly used by [GameText](../functions/GameTextForPlayer) and [GameTextForAll](.
1111

1212
## Text Colors
1313

14-
It is possible to draw certain parts of your text in different colors. To do this, you simply need to use the colour slugs listed below, and encapsulate the part of your text which you want to draw in a specific color (e.g. \~y\~I'm drawn in yellow!\~y\~).
14+
It is possible to draw certain parts of your text in different colors. To do this, you simply need to use the colour slugs listed below, and encapsulate the part of your text which you want to draw in a specific color (e.g. `~y~I'm drawn in yellow!~y~`).
1515

1616
| Code | Colour | Description |
1717
| -------------------- | ------------------------------------------------------------------- | ------------------------------------------------ |

frontend/docs/scripting/resources/limits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ tags: []
6868
**Notes:**
6969

7070
1. Although the vehicle model limit in 0.3 is unlimited, if you use a large amount of vehicle models then it will affect client performance.
71-
2. Although the textdraw string limit is 1024 characters, if colour codes (e.g. ~r~) are used beyond the 255th character it may crash the client.
71+
2. Although the textdraw string limit is 1024 characters, if colour codes (e.g. `~r~`) are used beyond the 255th character it may crash the client.
7272
3. It is possible to show all Textdraws at the same time for one player, however this is not recommended.
7373
4. To circumvent these limits, it is possible to use a [streamer](https://github.com/samp-incognito/samp-streamer-plugin). Streamers work by only creating the entities etc. that are close to players.
7474
5. Due to client limitations only up to 51 actors may actually be shown at a time.

0 commit comments

Comments
 (0)