Error Zero Divisor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(you dont get error when divide 0 by something)
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This error simply means that the variable you are dividing contains zero or that you try to select a not existing element of an array.
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.




Line 9: Line 11:


'''Example:'''
'''Example:'''
_myVar = 15 / 0


_myVar = [1,2,3] [[select]] 15
_myVar = [1,2,3] [[select]] 15
Line 15: Line 19:




[[Category:Editing: Flashpoint]]
[[category:Operation Flashpoint: Editing|ERRORZERO]]
[[Category:Troubleshooting]]
[[Category:Common Scripting Errors]]
[[Category:Common Scripting Errors]]

Revision as of 13:18, 21 July 2019

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