AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   SH_CALL return value (https://forums.alliedmods.net/showthread.php?t=124369)

Afronanny 04-15-2010 22:18

SH_CALL return value
 
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.

pheadxdll 04-18-2010 00:27

Re: SH_CALL return value
 
..the SH_CALL macro returns the value

Code:

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

Afronanny 04-18-2010 11:13

Re: SH_CALL return value
 
Quote:

Originally Posted by pheadxdll (Post 1153643)
..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.


All times are GMT -4. The time now is 23:17.

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