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 


Calling Msg()

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
aeree
Cheater
Reputation: 3

Joined: 23 Jan 2010
Posts: 42
Location: Germany

PostPosted: Wed Aug 28, 2013 7:18 am    Post subject: Calling Msg() Reply with quote

I tried to call the Msg() function in Counter-Strike Source which outputs text into the console.
The problem is that I don't know how to pass a string into the function. I thought that you would push it onto the stack or something but i really have no clue how to do that.

_________________
1 + 1 =
Back to top
View user's profile Send private message
661089799107
Expert Cheater
Reputation: 3

Joined: 25 Jan 2009
Posts: 186

PostPosted: Wed Aug 28, 2013 8:39 am    Post subject: Reply with quote

Find out how the Msg function is called by setting a bp on it, and then stepping till return.

Are you trying to call it from ce, or your own injected module?
Back to top
View user's profile Send private message
aeree
Cheater
Reputation: 3

Joined: 23 Jan 2010
Posts: 42
Location: Germany

PostPosted: Wed Aug 28, 2013 9:03 am    Post subject: Reply with quote

Blacknight wrote:
Find out how the Msg function is called by setting a bp on it, and then stepping till return.

Are you trying to call it from ce, or your own injected module?


I'm calling it in an AA script. I stepped over the function to see what how it works but I'm not sure what I'm looking for.
As far as I know the function only takes one argument. Isn't there a general way a function gets the arguments?

_________________
1 + 1 =
Back to top
View user's profile Send private message
661089799107
Expert Cheater
Reputation: 3

Joined: 25 Jan 2009
Posts: 186

PostPosted: Wed Aug 28, 2013 9:16 am    Post subject: Reply with quote

push addressOfString
call Msg
Back to top
View user's profile Send private message
aeree
Cheater
Reputation: 3

Joined: 23 Jan 2010
Posts: 42
Location: Germany

PostPosted: Wed Aug 28, 2013 9:30 am    Post subject: Reply with quote

Blacknight wrote:
push addressOfString
call Msg


Thank you Razz
that works perfectly

_________________
1 + 1 =
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