21.04.2012, 13:36
The errors are pretty self-explanatory. You need to #define CHECKPOINT_STORE at the top of the script or wherever. You've probably forgotten to do that. Secondly, you have a closing bracket that isn't paired with an opening bracket. Thirdly, you've probably typed a function wrong. It'd be more helpful if we knew which lines in the script the code you posted was at.