Problem orpheu CheckWinConditions
Hello, i have problem with my plugin.
The error log is: Code:
[ORPHEU] Function "CHalfLifeMultiplay::CheckWinConditions" not foundHere is my file CheckWinConditions: Code:
{ |
Re: Problem orpheu CheckWinConditions
Where is the config file? How hook is registered?
|
Re: Problem orpheu CheckWinConditions
Sorry but my english is not very well.
Can you give me some tip what config and hook you want ? |
Re: Problem orpheu CheckWinConditions
Arkshine asked for the location of CheckWinConditions file. It should be located in addons/amxmodx/configs/orpheu/virtualFunctions/CGameRules/ folder. Where is yours currently?
|
Re: Problem orpheu CheckWinConditions
Quote:
Here is photo: http://screenshu.com/static/uploads/.../xn/q07n6e.jpg |
Re: Problem orpheu CheckWinConditions
I guess you are retrieving the function in your plugin in such way (or similar):
PHP Code:
Show us how you retrieve the function in your code. |
Re: Problem orpheu CheckWinConditions
Here is
Code:
OrpheuRegisterHook(OrpheuGetFunction("CheckMapConditions", "CHalfLifeMultiplay"), "game_blockConditions"); |
Re: Problem orpheu CheckWinConditions
As I said, try "CGameRules" instead of "CHalfLifeMultiplay" in the second (CheckWinConditions) call.
|
Re: Problem orpheu CheckWinConditions
It doesn't work, I tried it.
Code:
Function "CGameRules::CheckWinConditions" not found |
Re: Problem orpheu CheckWinConditions
Oh wait, these are virtual functions, I don't think you should retrieve them like that, but rather from an object.
Look at this topic where Joaqim shows how to get a CGameRules object. You'll see that he uses OrpheuRegisterHookFromObject() to hook a virtual function. |
| All times are GMT -4. The time now is 09:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.