[CSGO]SDKHooks: Instruction contained invalid parameter
I have the same problem on 1.9 and 1.8 SM.
Problem: On shoot temmate, plugn blaming: Code:
L 04/15/2018 - 00:15:48: [SM] Exception reported: Instruction contained invalid parameter PHP Code:
PHP Code:
|
Re: [CSGO]SDKHooks: Instruction contained invalid parameter
Are you using a compiler from an official build of SM?
|
Re: [CSGO]SDKHooks: Instruction contained invalid parameter
Quote:
|
Re: [CSGO]SDKHooks: Instruction contained invalid parameter
SM does checks on the compiled plugin code to see that some things make sense. The error means one of those checks failed. Either the compiler output something it shouldn't have or the check itself is wrong. A bug in the compiler is more likely, especially if you're running a custom modified version.
Can you post the exact versions of SM and compiler that result in seeing the error? Can you also post a copy of your plugin that you compiled? |
Re: [CSGO]SDKHooks: Instruction contained invalid parameter
Currently, I found the problem in all of my functions of include but I don't get it:
Try to explain where is a different between "IsValidPlayer" and "IsValidEntity", valid ent will work correctly. In the scope of SDKHooks "victim" is a client index same as "attacker", why then I have got "Instruction contained invalid parameter" error. |
Re: [CSGO]SDKHooks: Instruction contained invalid parameter
We can not help you if you do not provide what was asked.
|
Re: [CSGO]SDKHooks: Instruction contained invalid parameter
Quote:
In the current state, plugin works. But if I will use some functionality from maincore lib, the plugin will crash without any exception. E.G: "IsValidClient" instead sm "IsValidEntity". Code new version: PHP Code:
|
Re: [CSGO]SDKHooks: Instruction contained invalid parameter
Ok I found the problem:
PHP Code:
any idea how to fix it? |
Re: [CSGO]SDKHooks: Instruction contained invalid parameter
0 is perfectly valid for attacker - it indicates damage done by the world (such as falling damage).
|
Re: [CSGO]SDKHooks: Instruction contained invalid parameter
Quote:
|
All times are GMT -4. The time now is 16:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.