18.09.2012, 23:21
This is some very bad coding practice. I suggest looking through some race scripts to see how they keep track of checkpoints. You should always try to avoid repeated and/or redundant code. The whole of that could be written in about 40 lines, more or less.