View previous topic :: View next topic |
Author |
Message |
Smellyhobo101 Newbie cheater
Reputation: 0
Joined: 21 Sep 2014 Posts: 23
|
Posted: Mon Sep 05, 2016 1:54 am Post subject: Calling LUA function from assembly with multiple parameters. |
|
|
I already know how to call functions with 1 or no parameters. My function calls usually look like this:
Code: |
pushad
push eax
push functionname
call LuaFunctionCall
popad
|
I have a function with 4 parameters but LuaFunctionCall seems to only take 1 no matter what. Is there any way to do this?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 468
Joined: 09 May 2003 Posts: 25706 Location: The netherlands
|
Posted: Mon Sep 05, 2016 4:23 am Post subject: |
|
|
give as parameter the address where the 4 parameters are stored in memory, and use readInteger/readPointer in your function to read those values
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
|