 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Mon Dec 15, 2008 6:56 pm Post subject: [C++] Whats wrong here? x_X? (( solved stop spamming!)) |
|
|
| Code: | #include <windows.h>
#include <iostream>
void HitKO()
{
unsigned long PID;
HANDLE hProcess;
HWND hWindow=FindWindow(NULL, "main");
DWORD amp = 0x01;
DWORD Newdatasize=sizeof(amp);
CreateRemoteThread(hWindow, NULL, 0, 0, 0, NULL, NULL);
GetWindowThreadProcessId(hWindow, &PID);
hProcess=OpenProcess(PROCESS_ALL_ACCESS, TRUE, PID);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F24, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F25, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F26, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02707394, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02707398, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02651E6C, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02651E70, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F10, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F11, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F12, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F28, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F29, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F2A, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x027078FC, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02707900, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F2B, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F2C, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F2D, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F2E, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02707ECC, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02707ECF, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02707ED0, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F1C, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F1D, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F1E, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x027068D4, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x027068D8, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F20, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02706E44, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02706E48, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F14, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F15, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F16, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02705E44, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02705E48, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x026A6F18, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02706384, &, Newdatasize, 0);
WriteProcessMemory(hProcess, (LPVOID)0x02706388, &, Newdatasize, 0);
CloseHandle(hProcess);
} |
Error
1>------ Build started: Project: projecto, Configuration: Debug Win32 ------
1>Linking...
1>LINK : fatal error LNK1561: entry point must be defined
1>Build log was saved at "file://d:\Documents and Settings\Gogodr\My Documents\Visual Studio 2008\Projects\projecto\projecto\Debug\BuildLog.htm"
1>projecto - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Last edited by gogodr on Tue Dec 16, 2008 12:10 pm; edited 1 time in total |
|
| Back to top |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Mon Dec 15, 2008 6:58 pm Post subject: |
|
|
| Code: | | 1>LINK : fatal error LNK1561: entry point must be defined |
There is no place for your code to start. The linker won't know where to make the entrypoint..you need a main function. |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Mon Dec 15, 2008 7:07 pm Post subject: |
|
|
Pretty sure your CreateRemoteThread isn't right either, although that has nothing to do with the error. _________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Overload Master Cheater
Reputation: 0
Joined: 08 Feb 2008 Posts: 293
|
Posted: Mon Dec 15, 2008 7:15 pm Post subject: |
|
|
main method plz kthxbai  _________________
Blog
| Quote: | Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that |
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Dec 15, 2008 7:47 pm Post subject: |
|
|
| You have no entry point, tell the linker to use that, or use main. |
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Mon Dec 15, 2008 7:56 pm Post subject: |
|
|
| instead of void I should write main? |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Dec 15, 2008 8:28 pm Post subject: |
|
|
| gogodr wrote: | | instead of void I should write main? |
void main() {
code
} _________________
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Mon Dec 15, 2008 8:46 pm Post subject: |
|
|
| Code: |
for(int i=0x026A6F24;i<=0x02706388;i++){
WriteProcessMemory(hProcess, (LPVOID)i, &, Newdatasize, 0);
}
|
Maybe you could use this if it doesn't crash your game?  |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Dec 15, 2008 9:10 pm Post subject: |
|
|
| gogodr wrote: | | instead of void I should write main? |
int main(){
return 0;
} |
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Mon Dec 15, 2008 9:26 pm Post subject: |
|
|
| _void_ wrote: | | Code: |
for(int i=0x026A6F24;i<=0x02706388;i++){
WriteProcessMemory(hProcess, (LPVOID)i, &, Newdatasize, 0);
}
|
Maybe you could use this if it doesn't crash your game?  |
just some of the addresses are consecuvite, they are specific addresses to modify |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Dec 15, 2008 10:08 pm Post subject: |
|
|
| gogodr wrote: | | _void_ wrote: | | Code: |
for(int i=0x026A6F24;i<=0x02706388;i++){
WriteProcessMemory(hProcess, (LPVOID)i, &, Newdatasize, 0);
}
|
Maybe you could use this if it doesn't crash your game?  |
just some of the addresses are consecuvite, they are specific addresses to modify |
Why not store all the address in an array, then do like
for(int i = 0; i<arraysize; i++)
WriteProcessMemory(hProcess, (LPVOID)array[i], &, NewDataSize); _________________
|
|
| Back to top |
|
 |
Wintermoot Expert Cheater
Reputation: 0
Joined: 08 Nov 2007 Posts: 198
|
Posted: Mon Dec 15, 2008 11:00 pm Post subject: |
|
|
lol@GrandChase.
It uses pointers. Also, there should only be 15 monster HP addresses. |
|
| Back to top |
|
 |
ups2000ups I post too much
Reputation: 0
Joined: 31 Jul 2006 Posts: 2471
|
|
| Back to top |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Tue Dec 16, 2008 1:09 am Post subject: |
|
|
sorry forgot to edit this'but this was solved a long time ago
yeah I just changed it to the main |
|
| Back to top |
|
 |
Abilityfun How do I cheat?
Reputation: 0
Joined: 10 Jun 2007 Posts: 8
|
Posted: Tue Dec 16, 2008 11:17 am Post subject: |
|
|
A nice method I learned is
int main
{
//code here
return 0;
} |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|