View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-10-2017 , 19:27   Re: [Suggestions] AMXX 1.8.3
Reply With Quote #22

Quote:
Originally Posted by Depresie View Post
Yes, it does, because it will set the last custom speed instead of the speed value set in the last plugin loaded
Perhaps you should review the definition of a race condition. As far as I can tell, you can't prevent a race condition when setting a parameter like this without properly implementing the code in both plugins (a native wouldn't solve this). Granted, I'm sure there are some cases where it won't be possible at all.

You'll need to be more specific about what your two plugins are doing for me to better understand how you might use this functionality. If you already posted this, you can PM the link to the post.


Quote:
Originally Posted by Depresie View Post
I agree here, but such stocks that are used pretty often should, it's not about the efficiency, it's more about the accessibility and the ease of use, which is one of the main reasons why there is amxmodx
Accessibility and ease of use are not good reasons to add something to an API if they can easily be constructed using existing API functions. I.e. functions derived from other functions are effectively just macros.

If you find that you use a particular function often then you should create your own custom include that you can use in your plugins.
__________________

Last edited by fysiks; 01-10-2017 at 19:28.
fysiks is offline