Quote from: Jordanowen42 on Mon 13/05/2024 09:07:22I didn't write the code- it seems to be something AGS set up automatically.
Not likely. The only way that could happen "automatically" is if it was part of a template you chose when you started the project, or a module you imported. It's certainly not part of any standard template (since it is invalid AGS code), and if it was part of a (broken) module, it wouldn't appear in GlobalScript.
And in any case, if it had been there the whole time, you'd have had the same error the whole time. So almost certainly, you either wrote or edited this code, and simply forgot about it. (In your first forum post you mention using ChatGPT to test your code; this is the kind of invalid AGS code that ChatGPT might very likely generate, so I suspect you got it from there and copy-pasted it into your script.)
Edit: Unless you have something like the example struct Khris gave, the lines are probably nonsense, and I'd just delete them.