Difference between revisions of "Lua:getAddress"

From Cheat Engine
Jump to navigation Jump to search
(Created page with ''''function''' getAddress(''AddressString'') Passes the given string to Cheat Engine's symbol handler and returns the corresponding address as an integer ===Function Parameters…')
 
(Added mention of errorOnLookupFailure)
Line 2: Line 2:
  
 
Passes the given string to Cheat Engine's symbol handler and returns the corresponding address as an integer
 
Passes the given string to Cheat Engine's symbol handler and returns the corresponding address as an integer
 +
 +
If errorOnLookupFailure is set to true (the default value), if you look up a symbol that does not exist, it will throw an error. With errorOnLookupFailure set to false, it will return 0.
 +
  
 
===Function Parameters===
 
===Function Parameters===

Revision as of 20:27, 5 September 2014

function getAddress(AddressString)

Passes the given string to Cheat Engine's symbol handler and returns the corresponding address as an integer

If errorOnLookupFailure is set to true (the default value), if you look up a symbol that does not exist, it will throw an error. With errorOnLookupFailure set to false, it will return 0.


Function Parameters

Parameter Type Description
AddressString CEAddressString The addressstring to convert to an integer


See also