Error Generic Error in Expression: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
This error occurs when the type of data an operator is expecting does not match. | |||
This error | |||
Line 12: | Line 10: | ||
'''Example:''' | '''Example:''' | ||
<sqf> | |||
_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 - {{Name|ofp|short}} | |||
</sqf> | |||
[[Category:Common Scripting Errors]] | [[Category:Common Scripting Errors]] |