diff --git a/frontend/docs/client/CrashAddresses.md b/frontend/docs/client/CrashAddresses.md index f45e391b6cb3..df4543f7545f 100644 --- a/frontend/docs/client/CrashAddresses.md +++ b/frontend/docs/client/CrashAddresses.md @@ -11,7 +11,7 @@ The below table lists some common crash addresses which you can use to help trac | --------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Rare | 0x00000000 | SA:MP is not initializing. | Re-install the game, ensure singleplayer works If you have any mods installed, remove them | | Rare | 0x006E3D17 | Skin related. Often occurs when changing the skin of a player who is in a vehicle, or is just entering or exiting one. | Ensure the player is on foot prior to changing their skin. | -| Rare | 0x0058370A | Hard to trace. Appears to be vehicle / camera related. Occured when the script attempted to put the player in a vehicle. The vehicle the player is being teleported into is not yet available and/or rendered in the world | Wait a few hundred-ms before teleporting a player into a vehicle that is newly created. Another solution would potentially be to use SetCameraBehindPlayer prior to teleporting them to the vehicle. | +| Rare | 0x0058370A | Hard to trace. Appears to be vehicle / camera related. Occurred when the script attempted to put the player in a vehicle. The vehicle the player is being teleported into is not yet available and/or rendered in the world | Wait a few hundred-ms before teleporting a player into a vehicle that is newly created. Another solution would potentially be to use SetCameraBehindPlayer prior to teleporting them to the vehicle. | | Rare | 0x0040F64C | Issue in Windows 7 / Vista relating to permissions. Problem in the installer version that the SA:MP client uses | Update to SA:MP 0.3.7. If it still occurs rename your GTASA directory. | | Rare | 0x0059F8B4 | Occurs when the client fails to load SA:MP objects. Usually a problem with one an essential file, samp.img being missing. | Re-install the client. Try running the installer as Administrator if using Windows Vista / 7. | | Rare | 0x00746929 OR 0x0081214A | Badly configured client side setting. | Terminate your "gta_sa.exe" using Task Manager | diff --git a/frontend/docs/scripting/functions/GetPlayerAmmo.md b/frontend/docs/scripting/functions/GetPlayerAmmo.md index 01d3fb983af9..8423c10c8740 100644 --- a/frontend/docs/scripting/functions/GetPlayerAmmo.md +++ b/frontend/docs/scripting/functions/GetPlayerAmmo.md @@ -20,7 +20,7 @@ The amount of ammo in the player's current weapon. ## Examples ```c -ublic OnPlayerCommandText(playerid, cmdtext[]) +public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp(cmdtext, "/myammo", true)) { diff --git a/frontend/docs/scripting/functions/NetStats_MessagesSent.md b/frontend/docs/scripting/functions/NetStats_MessagesSent.md index 493b3037a86e..16afec6e91bb 100644 --- a/frontend/docs/scripting/functions/NetStats_MessagesSent.md +++ b/frontend/docs/scripting/functions/NetStats_MessagesSent.md @@ -25,7 +25,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) if (!strcmp(cmdtext, "/msgsent")) { new szString[144]; - format(szString, sizeof(szString), "You have recieved %i network messages.", NetStats_MessagesSent(playerid)); + format(szString, sizeof(szString), "You have received %i network messages.", NetStats_MessagesSent(playerid)); SendClientMessage(playerid, -1, szString); } return 1; diff --git a/frontend/docs/scripting/functions/SetPlayerHoldingObject.md b/frontend/docs/scripting/functions/SetPlayerHoldingObject.md index ddbf6b6d3636..71d74917a5d7 100644 --- a/frontend/docs/scripting/functions/SetPlayerHoldingObject.md +++ b/frontend/docs/scripting/functions/SetPlayerHoldingObject.md @@ -40,7 +40,7 @@ public OnPlayerSpawn(playerid) :::note - Only one object may be attached per player. -- This function is seperate from the CreateObject / CreatePlayerObject pools. +- This function is separate from the CreateObject / CreatePlayerObject pools. ::: diff --git a/frontend/docs/scripting/language/Directives.md b/frontend/docs/scripting/language/Directives.md index bdbea736db1a..20b2729c54dc 100644 --- a/frontend/docs/scripting/language/Directives.md +++ b/frontend/docs/scripting/language/Directives.md @@ -296,7 +296,7 @@ new main() {printf("%d", gOldVariable);} ``` -That will give a warning that gOldVariable should not be used anymore. This is mostly useful for functions to preserve backwards compatability while updating the API. +That will give a warning that gOldVariable should not be used anymore. This is mostly useful for functions to preserve backwards compatibility while updating the API. ### `#tryinclude` diff --git a/frontend/docs/scripting/language/reference/10-Proposed-function-library.md b/frontend/docs/scripting/language/reference/10-Proposed-function-library.md index 25ba9023f5c5..8ddf71b17b9d 100644 --- a/frontend/docs/scripting/language/reference/10-Proposed-function-library.md +++ b/frontend/docs/scripting/language/reference/10-Proposed-function-library.md @@ -22,7 +22,7 @@ argument list (see page 80). | Returns | value if it is in the range min – max; min if value is lower than min; and max if value is higher than max. | | | See also | max, min | | -| funcidx | | Return a public funtion index | +| funcidx | | Return a public function index | | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------: | | Syntax | funcidx(const name[]) | | | Returns | The index of the named public function. If no public function with the given name exists, funcidx returns −1. | | diff --git a/frontend/docs/tutorials/AdvancedStructures.md b/frontend/docs/tutorials/AdvancedStructures.md index b3357c5e415b..5c76c3d62015 100644 --- a/frontend/docs/tutorials/AdvancedStructures.md +++ b/frontend/docs/tutorials/AdvancedStructures.md @@ -312,7 +312,7 @@ Adding a value to a binary tree is relatively easy, you just follow the tree thr Deleting a number from a binary tree can be hard or it can be easy. If the number is at the end of a branch (e.g. 1, 5, 7, 12 etc in the original tree) you simply remove them. If a number only has one child (e.g. the 9 in the second example) you simply move that child (e.g. the 12) up into their position (so 6's children would be 2 and 12 in the new second example with 9 removed). Deletion only gets interesting when a node has two children. There are at least four ways of doing this: -The first method is the simplest computationally. Basically you choose one of the branches (left or right, assume right for this explanation) and replace the node you've removed with the first node of that branch (i.e. the right child of the node you've removed). You then go left through the new branch till you reach the end and place the left branch there. E.g. if you removed the 14 from the original exampe you would end up with 25 taking its place at the top of the tree and 6 attached to the left branch of 17. This method is fast but ends up with very unbalanced trees very quickly. +The first method is the simplest computationally. Basically you choose one of the branches (left or right, assume right for this explanation) and replace the node you've removed with the first node of that branch (i.e. the right child of the node you've removed). You then go left through the new branch till you reach the end and place the left branch there. E.g. if you removed the 14 from the original example you would end up with 25 taking its place at the top of the tree and 6 attached to the left branch of 17. This method is fast but ends up with very unbalanced trees very quickly. The second method is to get all the numbers which are children of the node you just removed and rebuild a new binary tree from them, then put the top of that tree into the node you've just removed. This keeps the tree fairly well balanced but is obviously slower. diff --git a/frontend/docs/tutorials/MenuGuide.md b/frontend/docs/tutorials/MenuGuide.md index 7accf6abef71..0a555e28cee8 100644 --- a/frontend/docs/tutorials/MenuGuide.md +++ b/frontend/docs/tutorials/MenuGuide.md @@ -30,9 +30,9 @@ Now a bit of an explanation about the [CreateMenu](../scripting/functions/Create | Parameter | Specifies | | --------------- | ---------------------------------------------------------------- | | title | The heading of the menu | -| columns | The number here defines how much columns are used (2 is maximum) | -| Float:x | The heigth position of the menu on screen (left to right) | -| Float:y | The width position of the menu on screen (up and down) | +| columns | The number here defines how many columns are used (2 is maximum) | +| Float:x | The horizontal position of the menu on screen (left to right) | +| Float:y | The vertical position of the menu on screen (up and down) | | Float:col1width | The width of the first column | | Float:col2width | The width of the second column | @@ -153,6 +153,6 @@ Really easy, wasn't it? Okay, after you read this AND understood it, try your own menu. As you could see, it isn't that difficult, but will impress the players on your server all the more. And you can script really cool effects with this. It's also very cool for general stores or supermarkets for the things you can buy. Then you can subtract some money as effect and the price is shown in another column in the menu. But now, work on your own. -You can also add [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) with `false` after `ShowPlayerMenu` and [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) with `true` at end of `OnPlayerSelectedMenuRow` so that player may not move while they are browsing menus. +You can also add [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) with `false` after `ShowMenuForPlayer` and [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) with `true` at end of `OnPlayerSelectedMenuRow` so that player may not move while they are browsing menus. I hope you learned something from this tutorial. If you have any questions, ask in the forums/discord. diff --git a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md index d6d859f5d81b..8a92b7462481 100644 --- a/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md +++ b/frontend/i18n/es/docusaurus-plugin-content-docs/current/scripting/callbacks/OnPlayerCommandText.md @@ -38,7 +38,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) return 0; // Devolviendo 0 informa al servidor que el comando no fue procesado por este script. // OnPlayerCommandText va a ser llamado en otros scripts hasta que uno devuelva 1. - // Si ningún script devuelve 1, el mensaje 'SERVER: Unkown Command' va a ser mostrado al jugador. + // Si ningún script devuelve 1, el mensaje 'SERVER: Unknown Command' va a ser mostrado al jugador. } ``` diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_MessagesSent.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_MessagesSent.md index e23b39442afa..226a603c595c 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_MessagesSent.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_MessagesSent.md @@ -25,7 +25,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) if (!strcmp(cmdtext, "/msgsent")) { new szString[144]; - format(szString, sizeof(szString), "You have recieved %i network messages.", NetStats_MessagesSent(playerid)); + format(szString, sizeof(szString), "You have received %i network messages.", NetStats_MessagesSent(playerid)); SendClientMessage(playerid, -1, szString); } return 1; diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md index 18681cef00f6..62130e312213 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md @@ -153,6 +153,6 @@ if (strcmp(cmdtext, "/teleport", true) == 0) خوب، بعد از اینکه این را خواندید و متوجه شدید، منوی خودتان را امتحان کنید. همان طور که دیدید، خیلی دشوار نیست، اما بازیکنان سرور شما را بیشتر تحت تأثیر قرار خواهد داد. و می‌توانید افکت‌های واقعاً جالبی با این اسکریپت کنید. همچنین برای فروشگاه‌های عمومی یا سوپرمارکت‌ها برای چیزهایی که می‌توانید بخرید بسیار جالب است. سپس می‌توانید مقداری پول کم کنید و قیمت در ستون دیگر منو نشان داده شود. اما حالا، روی کار خودتان کار کنید. -همچنین می‌توانید [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) با `false` بعد از `ShowPlayerMenu` و [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) با `true` در انتهای `OnPlayerSelectedMenuRow` اضافه کنید تا بازیکن نتواند حرکت کند وقتی منوها را می‌بیند. +همچنین می‌توانید [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) با `false` بعد از `ShowMenuForPlayer` و [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) با `true` در انتهای `OnPlayerSelectedMenuRow` اضافه کنید تا بازیکن نتواند حرکت کند وقتی منوها را می‌بیند. امیدوارم از این آموزش چیزی یاد گرفته باشید. اگر سؤالی دارید، در انجمن‌ها/دیسکورد بپرسید. diff --git a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md index 9a48fa2beefe..03e6d60f57c2 100644 --- a/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md +++ b/frontend/i18n/id/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md @@ -153,6 +153,6 @@ Sangat mudah, bukan? Oke, setelah kalian membaca ini dan memahaminya, cobalah untuk membuat menu kalian sendiri. Seperti yang kalian lihat, ini tidaklah sulit, tapi ini akan membuat pemain di dalam server kamu sangat terkesan. Dan kalian dapat membuatnya lebih keren daripada ini. Ini sangatlah berguna bagi general store dan supermarket untuk membeli sesuatu. Lalu kalian dapat mengurangi uang sebagai efek dan harga yang ditampilkan di kolom lain pada menu. Tapi sekarang, buatlah sesuai kebutuhan kalian. -Kalian dapat menambahkan [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) dengan `false` setelah `ShowPlayerMenu` dan [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) dengan `true` pada akhir `OnPlayerSelectedMenuRow`, jadi pemain tidak dapat berpindah ketika memilih sesuatu di dalam menu. +Kalian dapat menambahkan [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) dengan `false` setelah `ShowMenuForPlayer` dan [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) dengan `true` pada akhir `OnPlayerSelectedMenuRow`, jadi pemain tidak dapat berpindah ketika memilih sesuatu di dalam menu. Saya harap kalian dapat mempelajari sesuatu dari tutorial ini. Jika kamu memiliki pertanyaan, silahkan bertanya di forum/discord. diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerAmmo.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerAmmo.md index 7969322562c7..764b0af5ec0b 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerAmmo.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/GetPlayerAmmo.md @@ -21,7 +21,7 @@ A quantidade de munição na arma atual do jogador. ## Exemplos ```c -ublic OnPlayerCommandText(playerid, cmdtext[]) +public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp(cmdtext, "/myammo", true)) { diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_MessagesSent.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_MessagesSent.md index ad74fb4a1e8b..3d075a40675a 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_MessagesSent.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_MessagesSent.md @@ -26,7 +26,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) if (!strcmp(cmdtext, "/msgsent")) { new szString[144]; - format(szString, sizeof(szString), "You have recieved %i network messages.", NetStats_MessagesSent(playerid)); + format(szString, sizeof(szString), "You have received %i network messages.", NetStats_MessagesSent(playerid)); SendClientMessage(playerid, -1, szString); } return 1; diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/reference/02-A-tutorial-introduction.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/reference/02-A-tutorial-introduction.md index 6daa5bb4af07..95ce2e647780 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/reference/02-A-tutorial-introduction.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/language/reference/02-A-tutorial-introduction.md @@ -1302,7 +1302,7 @@ entry() --- -If a pedestrian pushes the button during mirt activity, that button press is forgotten. Unless emergencies are a frequent occurence, this is probably a minor nuisance; and it is easy to fix, too. +If a pedestrian pushes the button during mirt activity, that button press is forgotten. Unless emergencies are a frequent occurrence, this is probably a minor nuisance; and it is easy to fix, too. ### • State programming wrap-up diff --git a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md index f719db852c9c..ccc0f05afafe 100644 --- a/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md +++ b/frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md @@ -153,6 +153,6 @@ Muito fácil, não foi? Ok, depois de ler isso E entender, tente seu próprio menu. Como você pôde ver, não é tão difícil, mas vai impressionar os jogadores do seu servidor ainda mais. E você pode programar efeitos muito legais com isso. Também é muito legal para lojas gerais ou supermercados para as coisas que você pode comprar. Então você pode subtrair algum dinheiro como efeito e o preço é mostrado em outra coluna no menu. Mas agora, trabalhe no seu próprio. -Você também pode adicionar [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) com `false` após `ShowPlayerMenu` e [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) com `true` no final de `OnPlayerSelectedMenuRow` para que o jogador não possa se mover enquanto estiver navegando nos menus. +Você também pode adicionar [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) com `false` após `ShowMenuForPlayer` e [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) com `true` no final de `OnPlayerSelectedMenuRow` para que o jogador não possa se mover enquanto estiver navegando nos menus. Espero que você tenha aprendido algo com este tutorial. Se tiver alguma dúvida, pergunte nos fóruns/discord. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/AdvancedStructures.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/AdvancedStructures.md index 21fc730f832f..54a930416ec6 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/AdvancedStructures.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/AdvancedStructures.md @@ -306,7 +306,7 @@ Adăugarea unei valori unui copac binar este relativ ușor, trebuie doar să urm Ștergerea unui număr dintr-un arbore binar poate fi dificilă sau poate fi ușoară. Dacă numărul este la sfârșitul unei ramuri (de exemplu, 1, 5, 7, 12 etc. în arborele original) pur și simplu le eliminați. Dacă un număr are un singur copil (de exemplu, 9 în al doilea exemplu), pur și simplu îl mutați pe copil (de exemplu, 12) în poziția lor (deci copiii lui 6 ar fi 2 și 12 în noul al doilea exemplu, cu 9 eliminați). Ștergerea devine interesantă numai atunci când un nod are doi copii. Există cel puțin patru moduri de a face acest lucru: -Prima metodă este cea mai simplă din punct de vedere calculatic. Practic, alegeți una dintre ramuri (stânga sau dreapta, asumați dreapta pentru această explicație) și înlocuiți nodul pe care l-ați eliminat cu primul nod al acelei ramuri (adică copilul drept al nodului pe care l-ați eliminat). Apoi mergeți la stânga prin noua ramură până ajungeți la capăt și așezați ramura stângă acolo. De exemplu. dacă ați eliminat 14 din exampe-ul original, ați ajunge cu 25 ocupându-i locul în vârful copacului și 6 atașat la ramura stângă a 17. Această metodă este rapidă, dar se termină cu copaci foarte dezechilibrați foarte repede. +Prima metodă este cea mai simplă din punct de vedere calculatic. Practic, alegeți una dintre ramuri (stânga sau dreapta, asumați dreapta pentru această explicație) și înlocuiți nodul pe care l-ați eliminat cu primul nod al acelei ramuri (adică copilul drept al nodului pe care l-ați eliminat). Apoi mergeți la stânga prin noua ramură până ajungeți la capăt și așezați ramura stângă acolo. De exemplu. dacă ați eliminat 14 din exemplul original, ați ajunge cu 25 ocupându-i locul în vârful copacului și 6 atașat la ramura stângă a 17. Această metodă este rapidă, dar se termină cu copaci foarte dezechilibrați foarte repede. A doua metodă este să obțineți toate numerele care sunt copiii nodului pe care tocmai l-ați eliminat și să reconstruiți un nou arbore binar din ele, apoi să puneți partea de sus a acelui arbore în nodul pe care tocmai l-ați eliminat. Acest lucru menține arborele destul de bine echilibrat, dar este evident mai lent. diff --git a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md index 95b8cde9f228..5deec1edcffb 100644 --- a/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md +++ b/frontend/i18n/ro/docusaurus-plugin-content-docs/current/tutorials/MenuGuide.md @@ -151,6 +151,6 @@ Foarte ușor, nu-i așa? Bine, după ce ați citit acest lucru ȘI l-ați înțeles, încercați propriul meniu. După cum ați putut vedea, nu este atât de dificil, dar îi va impresiona pe jucătorii de pe serverul dvs. cu atât mai mult. Și poți să creezi efecte foarte interesante cu asta. De asemenea, este foarte interesant pentru magazinele generale sau supermarketurile pentru lucrurile pe care le puteți cumpăra. Apoi, puteți scădea niște bani ca efect, iar prețul este afișat într-o altă coloană din meniu. Dar acum, lucrează pe cont propriu. -De asemenea, puteți adăuga [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) cu `false` după`ShowPlayerMenu` și [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) cu `true` la sfârșitul ʻOnPlayerSelectedMen jucătorul respectiv nu se poate mișca în timp ce navighează prin meniuri. +De asemenea, puteți adăuga [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) cu `false` după`ShowMenuForPlayer` și [TogglePlayerControllable](../scripting/functions/TogglePlayerControllable) cu `true` la sfârșitul ʻOnPlayerSelectedMen jucătorul respectiv nu se poate mișca în timp ce navighează prin meniuri. Sper că ați învățat ceva din acest tutorial. Dacă aveți întrebări, întrebați pe forumuri / discordie. diff --git a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/meta/Contributing.md b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/meta/Contributing.md index 6d896569687b..565eeec4700c 100644 --- a/frontend/i18n/ru/docusaurus-plugin-content-docs/current/meta/Contributing.md +++ b/frontend/i18n/ru/docusaurus-plugin-content-docs/current/meta/Contributing.md @@ -70,7 +70,7 @@ git clone https://github.com/openmultiplayer/web.git Используется с [OnPlayerClickPlayer](../callbacks/OnPlayerClickPlayer) ``` -`../` означает "подняться на директорию выше", так что если вы редактируете файл в папке `functions` и ссылаетесь на папку `callbacks`, вам следует использовать `../` чтобы вернуться в папку `scripting/`, а затем `callbacks/` чтобы перейти в папку `calbacks`, а затем имя файла (без `.md`), на который вы хотите сослаться. +`../` означает "подняться на директорию выше", так что если вы редактируете файл в папке `functions` и ссылаетесь на папку `callbacks`, вам следует использовать `../` чтобы вернуться в папку `scripting/`, а затем `callbacks/` чтобы перейти в папку `callbacks`, а затем имя файла (без `.md`), на который вы хотите сослаться. ### Изображения diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_MessagesSent.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_MessagesSent.md index efdadc95cea7..56d892c0ad7b 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_MessagesSent.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/NetStats_MessagesSent.md @@ -25,7 +25,7 @@ public OnPlayerCommandText(playerid, cmdtext[]) if (!strcmp(cmdtext, "/msgsent")) { new szString[144]; - format(szString, sizeof(szString), "You have recieved %i network messages.", NetStats_MessagesSent(playerid)); + format(szString, sizeof(szString), "You have received %i network messages.", NetStats_MessagesSent(playerid)); SendClientMessage(playerid, -1, szString); } return 1; diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md index bf4a181037c7..bed11c9155db 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/scripting/functions/SetPlayerHoldingObject.md @@ -40,7 +40,7 @@ public OnPlayerSpawn(playerid) :::note - Only one object may be attached per player. -- This function is seperate from the CreateObject / CreatePlayerObject pools. +- This function is separate from the CreateObject / CreatePlayerObject pools. ::: diff --git a/frontend/i18n/th/docusaurus-plugin-content-docs/current/tutorials/AdvancedStructures.md b/frontend/i18n/th/docusaurus-plugin-content-docs/current/tutorials/AdvancedStructures.md index 17aaa975ebca..d29c53870d6d 100644 --- a/frontend/i18n/th/docusaurus-plugin-content-docs/current/tutorials/AdvancedStructures.md +++ b/frontend/i18n/th/docusaurus-plugin-content-docs/current/tutorials/AdvancedStructures.md @@ -311,7 +311,7 @@ Adding a value to a binary tree is relatively easy, you just follow the tree thr Deleting a number from a binary tree can be hard or it can be easy. If the number is at the end of a branch (e.g. 1, 5, 7, 12 etc in the original tree) you simply remove them. If a number only has one child (e.g. the 9 in the second example) you simply move that child (e.g. the 12) up into their position (so 6's children would be 2 and 12 in the new second example with 9 removed). Deletion only gets interesting when a node has two children. There are at least four ways of doing this: -The first method is the simplest computationally. Basically you choose one of the branches (left or right, assume right for this explanation) and replace the node you've removed with the first node of that branch (i.e. the right child of the node you've removed). You then go left through than new branch till you reach the end and place the left branch there. E.g. if you removed the 14 from the original exampe you would end up with 25 taking it's place at the top of the tree and 6 attached to the left branch of 17. This method is fast but ends up with very unbalanced trees very quickly. +The first method is the simplest computationally. Basically you choose one of the branches (left or right, assume right for this explanation) and replace the node you've removed with the first node of that branch (i.e. the right child of the node you've removed). You then go left through the new branch till you reach the end and place the left branch there. E.g. if you removed the 14 from the original example you would end up with 25 taking its place at the top of the tree and 6 attached to the left branch of 17. This method is fast but ends up with very unbalanced trees very quickly. The second method is to get all the numbers which are children of the node you just removed and rebuild a new binary tree from them, then put the top of that tree into the node you've just removed. This keeps the tree fairly well balanced but is obviously slower.