Hi @Taipan89,
I’m sorry you had trouble compiling your OptoScript there. I was not able to reproduce that same issue. What was the compile error?
Two very common pointer problems folks get all the time:
-
Error: “The pointer may need to be dereferenced with the * operator.”
Easy fix: stick a * immediately before the name of your pointer variable. -
Error: “**Invalid type for argument #**X”
Easy fix: Check your data type. OptoScript does automatic conversions of some stuff (e.g. you can assign an integer to a float or vice versa). But for the commands you mentioned, you’re going to need a Pointer to Type: “Off Totalizer” otherwise the compiler will get cranky/confused.
FYI - in case you’ve not seen my 101 Lesson on pointers (I had fun writing it, some people were amused reading it), check out this post: PAC Control 101: Why/when/how would I use POINTERS?
Happy pointing!
Cheers,
Mary