Error Unknown Operator: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
'''Error Unknown Operator''' | '''Error Unknown Operator''' | ||
This error occurs when the game engine has attempted to parse something as an operator, but could not successfully find the given symbol | This error occurs when the game engine has attempted to parse something as an operator, but could not successfully find the given symbol. | ||
'''Example:''' | '''Example:''' | ||
_myBits = 1002 | 43 | _myBits = 1002 | 43<br> | ||
_myVariable = "hello " concat "world!" | |||
There are several reasons why this might happen. If a script intended for a new version of OFP makes use of a new operator, and is run on an old copy of the game, this error will show up. Another common cause is when executing a formatted String as an instruction, where a variable inside the instruction is undefined. | There are several reasons why this might happen. If a script intended for a new version of OFP makes use of a new operator, and is run on an old copy of the game, this error will show up. Another common cause is when executing a formatted String as an instruction, where a variable inside the instruction is undefined. | ||
'''Example:''' | '''Example:''' |
Revision as of 01:20, 11 June 2006
Error Unknown Operator
This error occurs when the game engine has attempted to parse something as an operator, but could not successfully find the given symbol.
Example:
_myBits = 1002 | 43
_myVariable = "hello " concat "world!"
There are several reasons why this might happen. If a script intended for a new version of OFP makes use of a new operator, and is run on an old copy of the game, this error will show up. Another common cause is when executing a formatted String as an instruction, where a variable inside the instruction is undefined.
Example:
["a = %1", b]
'Outputted instruction:'
a = scalar bool array string 0xfcfffef
Result:
The engine interprets 'scalar' as an uninitialised variable (similar to 'b' in the above example), and the parser expects an operator as the next token. 'bool' cannot be found in the list of operators (since it isn't one), and so an Unknown Operator message is given.
Compatibility:
Version 1.96