Skip to content

fix: Fixed incorrect information about file paths in NPC_LoadRecord function in documentation#1255

Merged
itsneufox merged 1 commit into
openmultiplayer:masterfrom
San-Andreas-Online:master
May 25, 2026
Merged

fix: Fixed incorrect information about file paths in NPC_LoadRecord function in documentation#1255
itsneufox merged 1 commit into
openmultiplayer:masterfrom
San-Andreas-Online:master

Conversation

@MichaelAceAnderson
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 25, 2026 08:38
@MichaelAceAnderson MichaelAceAnderson requested review from a team and itsneufox as code owners May 25, 2026 08:38
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the NPC_LoadRecord documentation to clarify the required filePath format (full path from server root including .rec) and adds/updates localized docs accordingly.

Changes:

  • Replaced the old note about omitting .rec with a warning explaining the correct filePath requirements.
  • Added the same warning to zh-CN and pt-BR localized docs.
  • Introduced a new French (fr) page for NPC_LoadRecord.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
frontend/docs/scripting/functions/NPC_LoadRecord.md Adds a warning clarifying filePath must be a full path including .rec.
frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/NPC_LoadRecord.md Adds the same warning clarification in Chinese.
frontend/i18n/pt-BR/docusaurus-plugin-content-docs/current/scripting/functions/NPC_LoadRecord.md Adds warning clarification (but introduces an English section heading).
frontend/i18n/fr/docusaurus-plugin-content-docs/current/scripting/functions/NPC_LoadRecord.md Adds a new French doc page, with some formatting and example-code issues.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +14 to +16
| Name | Description |
| -------------- | ------------------------------ |
| const filePath | Le chemin vers le fichier d'enregistrement |
Comment on lines +40 to +43
if (recordid == -1)
SendClientMessage(playerid, 0xFF0000FF, "Échec du chargement de l'enregistrement depuis : %s", filepath);
else
SendClientMessage(playerid, 0x00FF00FF, "Enregistrement chargé depuis %s avec l'ID : %d", filepath, recordid);
Comment thread frontend/docs/scripting/functions/NPC_LoadRecord.md Outdated
@itsneufox itsneufox merged commit c102926 into openmultiplayer:master May 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants