Error Zero Divisor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[Cc]ategory:[ _]?Operation Flashpoint:[ _]?(.*)(\|.*)?\]\]" to "{{GameCategory|ofp|$1}}")
m (category)
Line 16: Line 16:
_myVar = [1,2,3] [[select]] 15
_myVar = [1,2,3] [[select]] 15


{{GameCategory|ofp| Editing}}
[[Category:Common Scripting Errors]]
[[Category:Common Scripting Errors]]

Revision as of 17:25, 6 January 2021

This error occurs when you attempt to divide a variable by 0.

It also occurs when you attempt to access an element of an array which does not exist.


Compatibility:

Version 1.96


Example:

_myVar = 15 / 0

_myVar = [1,2,3] select 15