Raised This Month: $ Target: $400
 0% 

get_user_weapon or native?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 11-06-2013 , 10:23   Re: get_user_weapon or native?
Reply With Quote #1

In case of get_user_weapon you allowed to cache using CurWeapon Event, and checking in takedamage or other events.

In case of is_user*, this need to be called when the function starts (takedamage, etc)

__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-06-2013 , 11:09   Re: get_user_weapon or native?
Reply With Quote #2

Quote:
Originally Posted by ^SmileY View Post
In case of get_user_weapon you allowed to cache using CurWeapon Event, and checking in takedamage or other events.

In case of is_user*, this need to be called when the function starts (takedamage, etc)

You don't answer his question.
He want to know which method is more efficient
__________________
alan_el_more is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 11-06-2013 , 11:16   Re: get_user_weapon or native?
Reply With Quote #3

Quote:
Originally Posted by alan_el_more View Post
You don't answer his question.
He want to know which method is more efficient
Really? What do you think I mean by this post?
Who asked you surely know what I'm answering.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 11-06-2013 , 12:17   Re: get_user_weapon or native?
Reply With Quote #4

Quote:
Originally Posted by ^SmileY View Post
Really? What do you think I mean by this post?
Who asked you surely know what I'm answering.
No, you don't understand me.
baneado 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 23:13.


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