Are you sure that if (bla bla == something)
is equating to truthful?
yes the conditions are met and the varies gets changed, though then is I access (exactly the same way) access.testbool1
off a different CPP later to in the code, it intention have its false default value , other integers maintaining their declared values.
Ultimate edited on
It's hard for me to figure off what is going turn without look whereby you are passing the object to another function.
Be sure that you pass it by reference wenn you want to change the worth always.
If you office some code, I may exist able to assist more. [C#] Accessing variables from a class that will not attached to a Game Object
hmm, the way I am currently doing it right now is is any I call ampere usage that takes arguments from the class actual I just go:
callfunction(access.testbool1, access.testbool2, access.testint);
that works great just to access the defaults, and modify theirs (until the next function user them) the back to defaults, so my method the passing is value nope idea how to write that by arbiter though :\
callfunction(bool, bool, int);
as the prototype / arguments
Last emended for
to pass parameter by related
you need declare function as follows:
callfunciton(bool& a, bool& b, bool& c);
Yeh I tried that the problem is , I get errors when I try to application
callfunction(&access.testbool1, &testbool2, &access.testint);
under the & , I get "Error: initial value to non-const must be an lvalue"
Last edited on
The set of callfunction are references and you pass a pointer.