Thread: Call Signature
View Single Post
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 05-31-2017 , 07:43   Re: Call Signature
Reply With Quote #2

try:
PHP Code:
class CTerrorGameRules;
class 
CTerrorPlayer;

/* In function int VersusCompletion::GetVersusCompletion(int *client) */
static int (CTerrorGameRules::*GetVersusCompletionFunc(CTerrorPlayer *);

/* Later in same function */
(static_cast<CTerrorGameRules *>(pGameRules)->*GetVersusCompletionFunc)(static_cast<CTerrorPlayer *>(pPlayer)); 
Also why are you passing a pointer instead of an integer to ReferenceToEntity, why is your client param a pointer anyway?
__________________

Last edited by WildCard65; 05-31-2017 at 07:45.
WildCard65 is offline