Difference between revisions of "Lua:errorOnLookupFailure"

From Cheat Engine
Jump to navigation Jump to search
m (Updated the "see also" section, first edit was from another article's)
(Related Functions)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[Category:Lua]]
 
'''function''' errorOnLookupFailure(''state'')
 
'''function''' errorOnLookupFailure(''state'')
  
Line 16: Line 17:
 
|}
 
|}
  
== See also ==
+
{{LuaSeeAlso}}
* [[getAddress]]
+
 
* [[inModule]]
+
=== Related Functions ===
 +
* [[Lua:getAddress|getAddress]]
 +
* [[Lua:inModule|inModule]]

Latest revision as of 00:46, 25 January 2018

function errorOnLookupFailure(state)

If set to true (default) address lookups in string form will raise an error if it can not be looked up. This includes symbol names that are not defined and pointers that are bad. If set to false it will return 0 in those cases (Useful for pointers that don't work 100% of the time)

6.4+:Returns the original state

Function Parameters[edit]

Parameter Type Description
state Boolean Whether to raise errors on address lookup failures

See also[edit]

Related Functions[edit]