Error Zero Divisor: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Killzone Kid (talk | contribs) (you dont get error when divide 0 by something) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
This error occurs | 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 = 15 / 0 | _myVar = 15 / 0 | ||
Line 22: | Line 20: | ||
[[category:Operation Flashpoint: Editing|ERRORZERO]] | [[category:Operation Flashpoint: Editing|ERRORZERO]] | ||
[[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