For some reason, after a bit of scripting in my save/load screen, all the lines like:
ListBoxGetItemText (11, 26, 1, desca);
...have stopped working. The error is "invalid item specified" but this makes no sense because it's the right GUI/object number, and there most certainly IS one item in the list box. I'm stumped. I can't see how any of the scripting I've done recently would have affected that, seeing as everything I changed was related to after a save game is loaded, and this particular line (and all related) only runs right at start-up before any loading has been done.
EDIT: It's okay, I think I have it working properly now. I didn't realise it started counting items from 0. Is that mentioned in the manual because I didn't see it. If not, maybe it'd be worth adding it. If so... I'm an idiot.
Yes, it's 0-based.
This is mentioned in the manual under ListBoxGetSelected, but perhaps it should be mentioned in GetItemText as well.