Invalid Index Data
So, I tried to hook CBasePlayer::HostageUse function and I get this error( oprheu config ):
Code:
Parsing folder "CBasePlayer" startedCode:
Test plugin that I use: Code:
What's wrong with the sign ? |
Re: Invalid Index Data
change the index to 0 on client_print and show the value of id using %d
maybe it isn't the player, you can know what parameter is viewing the HLSDK where you get the offset |
Re: Invalid Index Data
Quote:
@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. |
Re: Invalid Index Data
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:
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 ? |
| All times are GMT -4. The time now is 13:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.