Hi! I'm having a lot of problems with ds_lists. Explaining my project and stuff would take ages, so I'm cutting right to the problem. In a for-loop I'm searching for given values in a ds_list (the first line in this code). The next two show_message lines tell me that in position 0 in this ds_list, the value 0 is indeed stored. But the last two lines show me that found_value = -1. That is to say, in the first line of this code, the value 0 doesn't get found in the ds_list pref_movement, even though I know for a fact that it's at least stored in pref_movement. Can anyone figure out what's going on?
EDIT: Oh, and I have GM 6.1.
found_value = ds_list_find_index(pref_movement, i); show_message("pref_movement is:"); show_message(string(ds_list_find_value(pref_movement,0))); show_message("found_value is:"); show_message(string(found_value));