Arma 3 Scripting

Error Generic Error in Expression

Topic · Markdown · JSON · original wiki page

This error occurs when the type of data an operator is expecting does not match.

Compatibility:

Version 1.96

Example:

_myString = "The meaning of life is " + 42;                    // error
_myString = "The meaning of life is " + str 42;                // OK
_myString = "The meaning of life is " + format ["%1", 42];    // OK - OFP