Plz, what am i doing wrong here ( using Cheat Engine 7.2) ?
In the "Enable" script which activates before all others
i define PLAYER_MAX_LEVEL and then make it globally by using the registerSymbol(PLAYER_MAX_LEVEL)
Code: Select all
[ENABLE]
// Globals
define(PLAYER_MAX_LEVEL,#100) // Max supported player lvl
registerSymbol(PLAYER_MAX_LEVEL) // make it global ?
{$LUA}
if syntaxcheck then return end
if process and readInteger(process) ~= 0 then
... bla bla bla ....
for example:
Code: Select all
db PLAYER_MAX_LEVEL
if i do a local define tho it's working
but... the value of PLAYER_MAX_LEVEL is to be used in other scripts also
Code: Select all
define(PLAYER_MAX_LEVEL,#100)
db PLAYER_MAX_LEVEL
tia
left is enable button/script, right is a child of that