Question[Noob]Problem with my hacks

Posts 113 of 13 · Page 1 of 1
[Noob]Problem with my hacks
EDIT: COMPLETELY SOLVED (Thanks Ac1d and CodeDemon)
/Request Close
make a thread and make sure the chams var is being alterd
Quote Originally Posted by Mr.Magicman View Post
make a thread and make sure the chams var is being alterd
It's altered, just gotta make a thread for it, I guess.
You cant just have a function do anything without it being called. You have to call the function in a thread and then hook the thread.

You're sig is trollin' /
Quote Originally Posted by CodeDemon View Post
You cant just have a function do anything without it being called. You have to call the function in a thread and then hook the thread.

You're sig is trollin' /
I dont know how to do that, i'm a noob in C++, I'm learning by lookin at bases

EDIT: I got it semi-working, stuff like FPS works now, but when I go ingame, I lag out when the map loads. Is it my Sleep? Or that I have 21 Hacks on /

EDIT2: I tried again with no hacks on and I still froze
Code:
DWORD WINAPI dwFunkyThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(200);

CALLHACKSHERE();

return 0;

}
Then create the thread in DLL Main on process attach,

Code:
CreateThread(NULL, NULL, dwFunkyThread, NULL, NULL, NULL);
Now that wasnt hard, was it? /
Quote Originally Posted by CodeDemon View Post
Code:
DWORD WINAPI dwFunkyThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(200);

CALLHACKSHERE();

return 0;

}
Then create the thread in DLL Main on process attach,

Code:
CreateThread(NULL, NULL, dwFunkyThread, NULL, NULL, NULL);
Now that wasnt hard, was it? /
I did that before you posted, now read the edits /
How are you rendering your hacks? Post the whole function.
EDIT: Read top of thread
Me guessing you have a shit load of sleep functions.
Sleep(200): at the end of the hacks and thats all you need
Quote Originally Posted by GodHack2 View Post
it might also be your ptc function post it here
Can't be, I tried again with only 5 hacks and it worked fine, with 41 hacks (PVT) everyone freezes like i'm tapping, I take hitmarkers but no damage, and I crash after 2 minutes, the more hacks I remove, the better it gets, i'm removing all the hacks that are pointless or I don't like.

Quote Originally Posted by ac1d_buRn View Post
Me guessing you have a shit load of sleep functions.
Sleep(200): at the end of the hacks and thats all you need
I never had a sleep except for when the game hooked, that was the problem, so I added one in my main void, annnnnnnd It worked. NO LAG WITH GREEN FPS HOLY SHIVIC (42 Hacks on at the same time)! Thanks for the info.
/Solved, Request Close
it might also be your ptc function post it here
/Closed, requested by OP .
Posts 113 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?