Raised This Month: $51 Target: $400
 12% 

SH_CALL return value


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Afronanny
Veteran Member
Join Date: Aug 2009
Old 04-15-2010 , 22:18   SH_CALL return value
Reply With Quote #1

Probably a newb question:

How do I get the return value of a hooked function called with SH_CALL?
I believe the return value is a CSteamID.

edit:
Oops meant to post this in MM:S coding questions forum.

Last edited by Afronanny; 04-15-2010 at 22:22.
Afronanny is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 04-18-2010 , 00:27   Re: SH_CALL return value
Reply With Quote #2

..the SH_CALL macro returns the value

Code:
CSteamID steamid = SH_CALL(iface, hookfunction)(any parameters);
pheadxdll is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 04-18-2010 , 11:13   Re: SH_CALL return value
Reply With Quote #3

Quote:
Originally Posted by pheadxdll View Post
..the SH_CALL macro returns the value

Code:
CSteamID steamid = SH_CALL(iface, hookfunction)(any parameters);

Ah. I thought it might be that easy, but wasn't sure.
Afronanny is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode