engine changes to pfn touch
A small test code using engine functions:
Code:
I get the error: Code:
test.sma(19) : error 025: function heading differs from prototype Code:
so what was changed to the function? and how would a correct usage of pfn_touch look like? |
public pfn_touch(ptr, ptd)
|
Also be careful: It's a full forward now. return PLUGIN_HANDLED will block the call from the hl engine
|
Quote:
|
well all of them are functions
forward: caller: amxx / a module; it is in a plugin stock: it is normally in a .inc file, caller is the plugin, it is only included to the code if the plugin uses it native: it is in a module or amxx core, the caller is the plugin |
umm
So Why does a forward block a call from the hl engine?
|
this forward is called directly from a Metamod hook function. If any pfn_touch function returns PLUGIN_HANDLED, the engine module returns MRES_SUPERCEDE to metamod, which causes the function in the dll not to be called.
|
hmm
Quote:
correct? |
Quote:
|
Quote:
MagicShot: i don't understand your question |
All times are GMT -4. The time now is 16:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.