View Single Post
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-01-2008 , 23:43   Re: [TUT/INFO] Condition operator aka ? and :
Reply With Quote #23

Quote:
Originally Posted by danielkza View Post
This is only true because PLUGIN_CONTINUE and PLUGIN_HANDLED correspond to 0 and 1. For other values, like FMRES_*, they may not. In this special case, it's easier to do as you stated. However, in others, this solution maybe cleaner than an if() statement.
I never said this would work in other cases. It works in this one and reduces instructions while not making it any more confusing, so there's no reason not to do it this way.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552