Raised This Month: $ Target: $400
 0% 

Invalid Index Data


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-19-2014 , 07:54   Re: Invalid Index Data
Reply With Quote #4

I just created my signature yesterday, with latest server build. I firstly used OrpheuGetFunction but it was saying that CBasePlayer::HostageUsed not found, so I decided to try with OrpheuGetFunctionFromClass( bad ideea ).

I redo it and now it's not giving any errors:

PHP Code:
{
    
"name" "HostageUsed",
    
"class" "CBasePlayer",
    
"library" "mod",
    
    
"identifiers"
    [ 
        { 
            
"os" "windows"
            
"mod" "cstrike"
            
"value" 34
        
}, 
        { 
            
"os" "linux"
            
"mod" "cstrike"
            
"value" "HostageUsed__11CBasePlayer"
        

    ] 

I still have to replace the sign for linux with the offset.

Thx for showing me the typo

Now, I have another problem. I added a message into the function, when I'm using a hostage, it doesn't print any message( Code in the first post ).

When I look in ida at the function header is shows void( nothing, if i'm right ), but when pressing F5 I see that the hearder has an int argument. How is this possibile ?
__________________

Last edited by HamletEagle; 08-19-2014 at 07:56.
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