Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[c++] writeprocessMemory

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
myown
How do I cheat?
Reputation: 0

Joined: 11 Mar 2014
Posts: 9

PostPosted: Sat Mar 15, 2014 3:51 am    Post subject: [c++] writeprocessMemory Reply with quote

guys this way to write address ? and it's work float and long ?! can some one help me


Code:

float chams=0.0f;

DWORD WINAPI HACKthread( LPVOID param ){
   while(True){
      If a[1]==1 Then
           WriteProcessMemory("PG", (LPVOID)0x5EFC44, (LPVOID)2366073344, 4, NULL);
      Else
         WriteProcessMemory("PG", (LPVOID)0x5EFC44, (LPVOID)2365811200, 4, NULL);
      _End
      If a[2]==1 Then
           WriteProcessMemory("PG", (LPVOID)0x5FE454, (LPVOID)2240612202, 4, NULL);
      Else
         WriteProcessMemory("PG", (LPVOID)0x5FE454, (LPVOID)2240611178, 4, NULL);
      _End
      If a[3]==1 Then
           WriteProcessMemory("PG", (LPVOID)0x48D1D2, (LPVOID)2348565979, 4, NULL);
      Else
         WriteProcessMemory("PG", (LPVOID)0x48D1D2, (LPVOID)2348565977, 4, NULL);
      _End
      If a[4]==1 Then
           WriteProcessMemory("S4Client", (LPVOID)0x5FADB2, (LPVOID)989874827, 4, NULL);
      Else
         WriteProcessMemory("S4Client", (LPVOID)0x5FADB2, (LPVOID)990136971, 4, NULL);
      _End
      If a[5]==1 Then
           WriteProcessMemory("S4Client", (LPVOID)0x4B0FBB, (LPVOID)1300955754, 4, NULL);
      Else
         WriteProcessMemory("S4Client", (LPVOID)0x4B0FBB, (LPVOID)1300955498, 4, NULL);
      _End
   }
}
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Sat Mar 15, 2014 11:54 am    Post subject: Reply with quote

Is it just me or you actually tried to put a string as a process handle Shocked
@edit:
Process handle doesn't mean its name.
read about handles and what's their purpose before you're trying to use them.

_________________
Stylo
Back to top
View user's profile Send private message
DDS
Expert Cheater
Reputation: 3

Joined: 10 Feb 2011
Posts: 112
Location: Bill's Planet

PostPosted: Sat Mar 15, 2014 5:21 pm    Post subject: Reply with quote

Stylo wrote:
Is it just me or you actually tried to put a string as a process handle Shocked


Shocked Wutttt lol JK

You can start by reading a lil bit on how to open a process here : http://msdn.microsoft.com/en-us/library/windows/desktop/ms684320

_________________
elDarkDragonSlayer
Back to top
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Mar 15, 2014 6:01 pm    Post subject: Reply with quote

The amount of things wrong with this code kind of proves that you are trying to copy paste things.. Take the time to learn the language and you will understand what you are doing and be able to fix and see your own issues.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites