@Baardvark: Switching the bool from 1 to 0 still produces the same error unfortunately.
@TheMasterRat: I'm not quite sure how the PROC command works. When I input the word Proc the only thing that appeared was PROC in yellow. What information should I put in ProcYourFunctionName(Variable1,Variable2...)?