(02-08-2024, 03:23 PM)aliensoldier Wrote:(02-01-2024, 08:15 PM)Marcus Wrote: I probably won't be able to look at the game until Saturday or Sunday, because I'll most likely be travelling. But I'll do my best to track down the runtime error then
You have looked at the code and found the error, I think it could be the indexof() function, it is a function of yours and I don't know how it works exactly, although it could be something else.
I haven't looked at the code, sorry, too much happening around me - family stuff. Maybe you're trying to find the index of an object that is no longer in the list? Where ever you're using 'indexof', look at what it returns:
Code:
obj = indexof(...)
if typeof(obj)
' the object is in the list, do what you want to do.
' ...
else
' don't do anything :)
endif