crapped How do I cheat?
Reputation: 0
Joined: 14 Nov 2011 Posts: 8
|
Posted: Thu Nov 24, 2011 10:00 pm Post subject: [delp] Conditioning global const according to Gameversion |
|
|
i have pretty complex procedure and function so
i separated my code in different unit for easy managing
i have "trainervar.pas" only for storing var and const
and i uses my 'var' unit in 'main' unit
the problem is, i want to conditioning every const when the game updated
how i can do this globally
if gameversion = "7.2" then
address = $555; // uses this when trainer attached to 7.2 version
if gameversion = "7.3" then
address = $560; // uses this when trainer attached to 7.3 version
edit:
if i placed the const in procedure and place it in public declaration should it work ? |
|