View previous topic :: View next topic |
Author |
Message |
Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 510
|
Posted: Tue Jul 01, 2025 5:34 am Post subject: [C Code] error: cannot use local functions |
|
|
Unfortunatelly I have this error, after including math header
I use sinf and cosf from this header and it gives me an error, what should I do?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25770 Location: The netherlands
|
Posted: Tue Jul 01, 2025 10:55 am Post subject: |
|
|
Is the target 32 or 64-bit ?
What you can do is define sinf and cosf (or sin/cos) yourself
Code: |
float __cdecl sinf(float _X);
float __cdecl cosf(float _X);
|
as ntdll exports these
_________________
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 |
|
 |
Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 510
|
Posted: Tue Jul 01, 2025 2:39 pm Post subject: |
|
|
Welp, after suggested declarations of sinf and cosf it still says that they're not defined, the target is 32-bit and ntdll.dll is loaded, but it can't find it
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25770 Location: The netherlands
|
Posted: Tue Jul 01, 2025 3:27 pm Post subject: |
|
|
ah 32 bit doesn't seem to have it. Try sin and cos instead of sinf/cosf
_________________
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 |
|
 |
Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 510
|
Posted: Wed Jul 02, 2025 10:56 am Post subject: |
|
|
that seems to work, thanks!
|
|
Back to top |
|
 |
|