Hi,
I am currently facing a problem with the CScript function variableExists. In the documentation it is supposed to return an integer which is 1 or 0, depending if the variable exists or not. But when I attempt to put it into an if statement, it says "integer expected".
When trying to assign its value to a variable (int presence_of_COG_X = variableExists("COG_X");) , the compiler tells me it is of void type. Is the function supposed to be a void function? Because I really do need the 1 or 0 values that it returns.
|
|