Raised This Month: $ Target: $400
 0% 

Custom is_user_alive library/module/plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 01-24-2014 , 08:49   Re: Custom is_user_alive library/module/plugin
Reply With Quote #1

Quote:
Originally Posted by Diwat[#26]-Metal View Post
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.
__________________

Last edited by hleV; 01-24-2014 at 08:53.
hleV is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode