Raised This Month: $ Target: $400
 0% 

Invalid Index Data


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-18-2014 , 13:13   Invalid Index Data
Reply With Quote #1

So, I tried to hook CBasePlayer::HostageUse function and I get this error( oprheu config ):

Code:
Parsing folder "CBasePlayer" started
			Parsing file "HostageUse" started
				Invalid index data
				FAILED
My signature file looks like this:

Code:
{     "name" : "HostageUse",     "class" : "CBasePlayer",     "library" : "mod",         "indexes" :     [         {             "os" : "windows",             "mod" : "cstrike",             "value" : [0x56,0x8B,0xF1,0xF6,0x86,0x30,0x03,0x00,0x00,0x10,"*","*",0x8B,0x86,0xC8,0x01]         },         {             "os" : "linux",             "mod" : "cstrike",             "value" : "HostageUsed__11CBasePlayer"         }     ] }

Test plugin that I use:
Code:
#include < amxmodx > #include < orpheu > public plugin_init() {     OrpheuRegisterHook(OrpheuGetFunctionFromClass( "player", "HostageUse", "CBasePlayer" ),"OnHostageUse", OrpheuHookPre ) } public OrpheuHookReturn:OnHostageUse( id ) {     client_print( id, print_chat, "Used a hostage" ) }

What's wrong with the sign ?
__________________

Last edited by HamletEagle; 08-18-2014 at 13:20.
HamletEagle is offline
 



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