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 


o.o

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Mon Jun 18, 2007 6:30 pm    Post subject: o.o Reply with quote

Code:
    Number1   dd 0, 0, 0
    Number2   dd 0, 0, 0
    Number3   dd 0, 0, 0





Code:
      mov ebx, Number1
      add ebx, Number2
      ;sub ebx, 1317472
invoke crt__itoa, ebx, addr Number3, 10


declare and the moving andadding

now when i add say 1 and 1 using StdIn function with 4 byte data i get:
1317474

i subtracted 2 from it and subtracting that from ebx

it works for SINGLE digits

but when i do like 10 + 10 i get something totally different

theres no tuts on this

any ideas?

_________________
Back to top
View user's profile Send private message
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

PostPosted: Tue Jun 19, 2007 12:40 am    Post subject: Reply with quote

Take out "addr" in that invoke. I don't believe the API uses values that 32 bits can't cover, so it wouldn't use a pointer.
_________________


Mini Engine v3.0
Mipla v1.0

Reposted old threads out of the MS section.
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue Jun 19, 2007 6:24 am    Post subject: Reply with quote

nope, will crash my dos client.

im thinking that when i had the numbers.

they're adding as strings.

then its just fucking the whole mess up

_________________
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 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