How can we help? You didn't post the code where you actually set, in GM, the Battery* variables...
-IMP
Sorry, as I said I used the Extension Package Builder to make a .gex file and added it. - The Test function - The Batterystatus function (All other battery* functions are with the same settings) I didn't set any variables for it, only added the function through the gex.
Since the test function work and all the functions added through the .gex got the same settings, should be the c++ that's the problem.