I've been trying to do this as well - basically reference a table through a table pointer. (for 2 days now!) So I stumbled on this post, cut and copied your code to a script window, and created the necessary entities... pointer table, pointer, 3 tables, 2 variables, etc. When I test compiled it, I got an error at the same place that Ive been getting one for my own code.
It doesn't like line 14
nMyValue = *pntCurrentList; // nMyValue will be 0, 1, then 2 as the loop repeats
Error on line 14: syntax error at or near "["
1 error(s), 0 warning(s)
Since I've been getting the same error when I compile my own code using table pointers, I'd figure I'd run it by you.