Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in "layer_get_name" example #6306

Closed
gm-bug-reporter bot opened this issue Jun 17, 2024 · 1 comment
Closed

Error in "layer_get_name" example #6306

gm-bug-reporter bot opened this issue Jun 17, 2024 · 1 comment
Assignees
Labels
docs-bug GameMaker Manual Bugs

Comments

@gm-bug-reporter
Copy link

Description

This line:
var layer_list = ds_list_create(); for (var i = 0; i Alt; array_length(a); i++;)

should be
var layer_list = ds_list_create(); for (var i = 0; i < array_length(a); i++;)

Manual Link

https://manual.gamemaker.io/monthly/en/GameMaker_Language/GML_Reference/Asset_Management/Rooms/General_Layer_Functions/layer_get_name.htm

Steps To Reproduce

Copy code into Gamemaker and try to run it, it generates an error.

Which version of GameMaker are you reporting this issue for?

IDE v2024.4.1.152 Runtime v2024.4.1.201

Which operating system(s) are you seeing the problem on?

Windows 10.0.19045.0

7c61fd61-c930-4ea2-8f77-aa5e6895b14e

@gm-bug-reporter gm-bug-reporter bot added the docs-bug GameMaker Manual Bugs label Jun 17, 2024
@stuckie stuckie moved this from Triage to Backlog in Team Workload Jun 18, 2024
YYBartT added a commit to YoYoGames/GameMaker-Manual that referenced this issue Jun 21, 2024
YoYoGames/GameMaker-Bugs#6306

* Updated code example: fixed the issue and replaced DS list with array
* Updated function page a bit
@YYBartT
Copy link

YYBartT commented Jun 21, 2024

Fixed the code example on the page, replaced the DS list with an array. Also updated the function page a bit.

@YYBartT YYBartT moved this from Backlog to Ready for QA in Team Workload Jun 21, 2024
@YYBartT YYBartT closed this as completed Jun 26, 2024
@github-project-automation github-project-automation bot moved this from Ready for QA to Done in Team Workload Jun 26, 2024
@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Jun 27, 2024
gurpreetsinghmatharoo pushed a commit to YoYoGames/GameMaker-Manual that referenced this issue Aug 8, 2024
YoYoGames/GameMaker-Bugs#6306

* Updated code example: fixed the issue and replaced DS list with array
* Updated function page a bit

(cherry picked from commit 6900952)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-bug GameMaker Manual Bugs
Projects
Status: Ready for QA
Development

No branches or pull requests

2 participants