Solved Uhh what did i do wrong here Speed test

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat
Status
Not open for further replies.

cplusplusmoon

Newbie
Full Member
Jan 30, 2017
7
32
0
C++:
#include <iostream>
#include <Windows.h>



using namespace std;


int main()
{

	HWND hwnd = FindWindowA(NULL, "EnigmaGunz");
	if (hwnd == NULL)

	{
		cout << "Cannot find Window." << endl;
		Sleep(3000);
		exit(-1);
	}
    else
    {
    DWORD WINAPI GettickCount_Hooked(void);
    if(oldtick==0)
    {
     oldtick=(*GetTickCount_Orig)();
     return oldtick;
    }
    DWORD factor;
    DWORD ret;

    ret = (*GetTickCount_orig)();
    if(speedhacking ==1)
    factor = 2.0;
    {
    else
    }
    factor = 1.0;
    {
    }
    DWORD newret;
    newret = ret+((oldtick-ret)*(factor-1));

    oldtick = ret;
    return newret;



}
gettickcount wasn't declared i declared it.
 
Last edited by a moderator:

Traxin

Escobar Tier VIP
Dank Tier Donator
Aug 3, 2015
1,041
25,378
154
Use CPP tags so we can actually read your code.

And I know you're not copying your code from an IDE because any half-decent IDE with code completion and syntax correction will complain about that code.

I mean seriously...
C++:
newret = ret+((oldtick-ret)*(factor-1));
I can't even being to decipher what it is that you're doing here.

C++:
    if(speedhacking ==1)
    factor = 2.0;
    {
    else
    }
    factor = 1.0;
    {
    }
Mmm... Try that again.

It looks like you're trying to hook an API call but... There's no hooking logic?!

It's blunders like these that make it evident that you really don't know what you're doing...

Not to mention a GetTickCount speed hack will produce one like Cheat Engine's which affects the whole process, ergo, disconnections occur on multiplayer games.

Another thing, read through the thread in my signature. Learn to ask for help or risk getting ignored.
Nobody is going to bother helping you if you can't describe what the problem is in DETAIL.
 

cplusplusmoon

Newbie
Full Member
Jan 30, 2017
7
32
0
Also i figured out what I did wrong , and its working now , i somehow clicked a button which messed up my whole code thanks for the help...
 
Status
Not open for further replies.
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods