Yeah, but thankfully syntax errors can be fixed by parsing the code into a site like
https://onecompiler.com/lua to check if it works.



GoogleFrog I wish I could say which string fails, but I do not know. I simply know that it must be amongst the lines that I included.
Using the function n_in_table in an if-statement works fine in the online lua compiler, but it doesn't work ingame. No idea if it is the if-statement or something in the functon that breaks.
Same with round_to_number and multiply_and_round. Maybe there's a problem when a function passes one of its arguments to another function?
Though I have a function which does this, but works just fine. See and compare:
https://pastebin.com/raw/emrz1Jdf