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 


ReadMemoryInteger hex problem

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

Joined: 13 May 2015
Posts: 6

PostPosted: Fri May 15, 2015 3:49 am    Post subject: ReadMemoryInteger hex problem Reply with quote

hi, I am working for some time in an cheat for a game, my problem now is:

BaseAdd = Hex (BaseAddress.ToString () + & H1DCEFB8)
Result1 = ReadInteger ("test.exe" BaseAdd)

this error is from ReadInteger:

An unhandled exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll

Additional information: Cast from string not valid "14129EFB8" to type 'Integer'.

how to convert this? : \.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri May 15, 2015 1:16 pm    Post subject: Reply with quote

No clue what your BaseAddress variable is declared as, but maybe this?

Code:
BaseAdd = Convert.ToInt32(BaseAddress.ToString(), 16) + &H1DCEFB8
Result1 = ReadInteger("test.exe", BaseAdd)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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