Quote:
Originally Posted by baneado
change the index to 0 on client_print and show the value of id using %d
|
It's unrelated. The function derives from CBasePlayer therefore that's what the first argument will be.
@HamEagle I can't say for sure what the error means, but I'm assuming there is other errors present? Your signature looks outdated but I doubt that is the cause. Also FYI function is CBasePlayer::HostageUse
d().
Anyway, your trying to incorrectly use a virtual function. That function is specific to CBasePlayer. So don't use
OrpheuGetFunctionFromClass() instead just
OrpheuGetFunction(). A signature of bytes is used to locate the function in the memory, wheras virtual functions don't require signatures as they are accessed using an offset.
__________________