Posted: Mon Jul 07, 2014 10:19 pm Post subject: User defined symbol as VEH hook
I'm really not sure what the problem is, trying to do a debug jump to my code.
Code:
function debugger_onBreakpoint()
if (EIP == 0x0093F710) then EIP = 0x0093F772
elseif (EIP == 0x00FF47B6) then EIP = getAddress(MyCode)
else return 0 end
The point of this is to store the address for the last fired weapon so I can use it elsewhere, in testing i've been setting the breakpoint manually so I can be sure that the symbol is being declared before hand. An error pops up saying that it cant determine what it means.
Posted: Tue Jul 08, 2014 12:27 am Post subject: Re: User defined symbol as VEH hook
Quote:
function debugger_onBreakpoint()
if (EIP == 0x0093F710) then EIP = 0x0093F772
elseif (EIP == 0x00FF47B6) then EIP = getAddress(MyCode)
else return 0 end
debug_continueFromBreakpoint(co_run)
return 1
end
Quote:
function debugger_onBreakpoint()
if (EIP == 0x0093F710) then EIP = 0x0093F772
elseif (EIP == 0x00FF47B6) then EIP = getAddress('MyCode')
else return 0 end
debug_continueFromBreakpoint(co_run)
return 1
end
_________________
I'm rusty and getting older, help me re-learn lua.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum