Error Zero Divisor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (removed categorization)
(you dont get error when divide 0 by something)
Line 1: Line 1:
This error occurs when the variable you are trying to divide has a value of zero, or when you attempt to divide a variable by 0.
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.
It also occurs when you attempt to access an element of an array which does not exist.
Line 11: Line 11:


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


_myVar = 15 / 0
_myVar = 15 / 0

Revision as of 12: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