View previous topic :: View next topic |
Author |
Message |
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Thu Sep 23, 2021 10:51 am Post subject: Calling function 2 times |
|
|
What i want to do is call function 2 times (1 - on, 2 - off and repeat) idk how to create one
_________________
void(__cdecl *Haxing)(HWND hGameWindow) |
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1055 Location: 0x90
|
Posted: Thu Sep 23, 2021 11:08 am Post subject: |
|
|
I'm struggling to understand why you would want to do this.
|
|
Back to top |
|
|
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Thu Sep 23, 2021 11:51 am Post subject: |
|
|
i'm too lazy to type
Code: | function new(toggle)
if toggle then
--do something
end
end |
_________________
void(__cdecl *Haxing)(HWND hGameWindow) |
|
Back to top |
|
|
Birdi Expert Cheater Reputation: 0
Joined: 08 Jun 2020 Posts: 122 Location: Migrating
|
Posted: Thu Sep 23, 2021 12:03 pm Post subject: |
|
|
..timer? I feel like you already have the solution here, if not even that.. just call it twice?
if state then ... else ... end?
_________________
Trying to learn!
Add me on Discord if you want hands-on help: Birdi#0007 |
|
Back to top |
|
|
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Thu Sep 23, 2021 12:23 pm Post subject: |
|
|
I used that functions toggle boolean, but is that possible to call function without typing toggle boolean?
_________________
void(__cdecl *Haxing)(HWND hGameWindow) |
|
Back to top |
|
|
Birdi Expert Cheater Reputation: 0
Joined: 08 Jun 2020 Posts: 122 Location: Migrating
|
Posted: Thu Sep 23, 2021 11:07 pm Post subject: |
|
|
It really depends what you're trying to do. Could you explain why you can't type out the function calls? Lol
There's plenty of ways to just call the function, we just don't know your what/why/not
_________________
Trying to learn!
Add me on Discord if you want hands-on help: Birdi#0007 |
|
Back to top |
|
|
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Thu Sep 23, 2021 11:09 pm Post subject: |
|
|
nvm, i can't call function like this 2 times: new()
_________________
void(__cdecl *Haxing)(HWND hGameWindow) |
|
Back to top |
|
|
|