Raised This Month: $ Target: $400
 0% 

Solved Orpheu natives


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-15-2018 , 09:55   Re: Orpheu natives
Reply With Quote #1

Your OrpheuGetFunction is incomplete. You want to hook Spawn from CBasePlayer class, not other class, so you need to mention that.
PHP Code:
 new OrpheuFunction:Spawn OrpheuGetFunction"Spawn" ); 
->
PHP Code:
 new OrpheuFunction:Spawn OrpheuGetFunction"Spawn""CBasePlayer" ); 
Same as I did with CBasePlayer:: DropPlayerItem.

If it still doesn't work please post the Spawn file from virtualFunctions/CBasePlayer folder.
__________________

Last edited by HamletEagle; 07-15-2018 at 09:57.
HamletEagle is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-15-2018 , 10:49   Re: Orpheu natives
Reply With Quote #2

Quote:
Originally Posted by HamletEagle View Post
Your OrpheuGetFunction is incomplete. You want to hook Spawn from CBasePlayer class, not other class, so you need to mention that.
PHP Code:
 new OrpheuFunction:Spawn OrpheuGetFunction"Spawn" ); 
->
PHP Code:
 new OrpheuFunction:Spawn OrpheuGetFunction"Spawn""CBasePlayer" ); 
Same as I did with CBasePlayer:: DropPlayerItem.

If it still doesn't work please post the Spawn file from virtualFunctions/CBasePlayer folder.
Oh, I didn't read the include file carefully, thanks for the fix.
I don't really have the signature for it, I randomly picked CBasePlayer::Spawn. Don't really need it, as I can do it with Hamsandwich.

By the way, I'm unable to find non-class functions in ReGameDLL such as Host_Status_f, PM_Duck, I searched everywhere but couldn't find, do you know where I can find them?
__________________
edon1337 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 12:49.


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