-
Notifications
You must be signed in to change notification settings - Fork 8
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
Labels
docs-bug
GameMaker Manual Bugs
Comments
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
Fixed the code example on the page, replaced the DS list with an array. Also updated the function page a bit. |
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
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
The text was updated successfully, but these errors were encountered: