Jassper:
Sorry, should have mentioned that this is Crestron Simpl+ programing
Yes you should definitely have mentioned that. There probably aren't that many Crestron Simpl+ experts on an Arduino/C++ forum.
Isn't there a Crestron Simpl+ forum? This seems totally out of place to me.
Next you'll want help fixing your car.