Quote:
Originally Posted by Diwat[#26]-Metal
Okey, yes, but suppose that there is no error in this module plan. Faster than I use always is_user_alive native?
|
is_user_alive() contacts the module to return the value of a boolean variable (
g_players[id].alive, I think) to the plugin.
Your dynamic native creates a new native, it then contacts the module, the module contacts the other plugin to get the value, and then that value goes back to your plugin.
It's not faster. In fact, it should be slower.
If you need a slight performance boost in your plugins, you'll have to create new variables in each one of them as opposed to using just one plugin as an API. You should only do that in big plugins that use very often-called forwards, though.
__________________