ccode void[solved]
ccode void[solved]
I already know how to call function void, but idk how to call function with boolean
Last edited by Frouk on Tue Oct 12, 2021 11:48 am, edited 2 times in total.
Re: C# Code void
Seriously?.. Define a boolean value and assign tk it the boolean function.
bool myBool = MyBoolFunc()
bool MyBoolFunc()
{
...
return true
}
bool myBool = MyBoolFunc()
bool MyBoolFunc()
{
...
return true
}
Re: C# Code void
Not like this
In c++ i can use
void(*Game_SetCopsEnabled)(bool AreCopsEnabled) = (void(*)(bool))0x6513E0;
In c++ i can use
void(*Game_SetCopsEnabled)(bool AreCopsEnabled) = (void(*)(bool))0x6513E0;
Re: C# Code void
any1?
Re: C# Code void
Man, you want to typedef a known pointer (address) to a name you want to give to a function. That's what I see there. Please explain better your quest next time.
Re: ccode void
I mean c code void(Cheat Engines update with c-compiler)
I can use this to call game function without any boolean or value types
All i want is to call game function with boolean
But i don't know how to, i tried all my ideas, even searched in google but didn't find
Code: Select all
typedef int(__cdecl *fDisableDriftPhys)(void);
fDisableDriftPhys DisableDriftPhys = (fDisableDriftPhys)0x65C910;
DisableDriftPhys()
All i want is to call game function with boolean
Code: Select all
CopToggleSwitch(true) //Enable Cops
CopToggleSwitch(false) //Disable Cops
Re: ccode void
it's called "parameters"
and you can just add them to the typedef parameters
if bool won't work use int and define true as 1 or 0xffffffff and false as 0
and you can just add them to the typedef parameters
if bool won't work use int and define true as 1 or 0xffffffff and false as 0
Re: ccode void
nvm i get it(mistake that was in my script is one more parameter(int)(void) <-- this was an mistake)
Who is online
Users browsing this forum: No registered users