Error Zero Divisor: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (you dont get error when divide 0 by something) |
(page formatting) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
=== Description === | |||
This error occurs 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. | ||
=== Compatibility === | |||
Version '''1.96''' | Version '''1.96''' | ||
=== Example === | |||
_myVar = 15 / 0 | |||
_myVar = [1,2,3] [[select]] 15 | |||
[[Category:Common Scripting Errors]] | [[Category:Common Scripting Errors]] |
Latest revision as of 17:26, 6 January 2021
Description
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