How does return FMRES_SUPERCEDE; work in this plugin?
Code:
#include <amxmodx>I assume with the name SUPERCEDE tied to it that it means to supercede any other functions/whatever that may be called normally by the forward... and I assume the FMRES_IGNORED; means to ignore anything else that may be called such as the sounds??? yet in tutorial it says FMRES_IGNORED = 1... and why is there a ; there as well??? Can someone clear this up for me and explain what returning those values actually does and if I am right in my assumption of what they do... ty |
the semi-colon denotes a line end. It is not nessasary, but it looks nice.
FMRES_*'s denote what to tell MetaMod about the forward return type. IGNOR E means continue on past, HANDLE means stop here, SUPERCEDE means this return value and operation goes above all others, OVERRIDE means to override the value. Look it up in the documentation before asking here; it saves time and effort. |
Quote:
|
| All times are GMT -4. The time now is 16:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.