SOLVED instance_create_layer(I can't get the data

ryu

Member
I changed the document a little and entered it, but I can't get the data
I get the number of hits, but the contents of the List seem to be empty.
An error occurs because the array cannot be taken.
Where should i fix.gamemane.pnggamemane2.png
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
Moderator
You are referring to the list as an array, which it's not. Either use the list accessor "|" or ds_list_find_value(), eg:

GML:
show_debug_message("List=" + string(List[| 0]));
// OR (this is the same)
show_debug_message("List=" + string(ds_list_find_value(List, 0)));
 
Top