Raised This Month: $ Target: $400
 0% 

Invalid Index Data


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 08-18-2014 , 22:23   Re: Invalid Index Data
Reply With Quote #1

Quote:
Originally Posted by baneado View Post
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::HostageUsed().
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.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet 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 13:13.


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