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 ?
__________________