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# Not able to write too pointer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Sun Oct 30, 2016 3:05 am    Post subject: C# Not able to write too pointer Reply with quote

Hello, I figured out my other problem ty (ParkourPenguin).

but now I have another. I am able to read from the pointer but I am not able to write too it. but I am able to write to the address the pointer points too.
Code:

static int dynamicAddress  = 0x0ED738A4;
vam.WriteInt16((IntPtr)dynamicAddress  , 3900);

^ works fine.

Code:
static int localplayerDir = 0x014F9360;
                int playerDirOffsetOne = vam.ReadInt32((IntPtr)playerDirection + 0xec);
                int playerDirOffsetTwo = vam.ReadInt32((IntPtr)playerDirOffsetOne + 0x50);
                int playerDirOffsetThree = vam.ReadInt32((IntPtr)playerDirOffsetTwo + 0x4c);
                int playerDirOffsetFour = vam.ReadInt32((IntPtr)playerDirOffsetThree + 0x30);
                ushort playerDirOffsetFive = (ushort) vam.ReadInt16((IntPtr)playerDirOffsetFour + 0xa4);
vam.WriteInt16((IntPtr)playerDirOffsetFive, 3900);


does not work ^
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25294
Location: The netherlands

PostPosted: Sun Oct 30, 2016 3:08 am    Post subject: Reply with quote

Write to (IntPtr)playerDirOffsetFour + 0xa4
_________________
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
View user's profile Send private message MSN Messenger
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Sun Oct 30, 2016 3:11 am    Post subject: Reply with quote

Dark Byte wrote:
Write to (IntPtr)playerDirOffsetFour + 0xa4

Thank you !
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
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