Raised This Month: $ Target: $400
 0% 

get_user_name vs client_infochanged variable


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 07-04-2017 , 14:16   Re: get_user_name vs client_infochanged variable
Reply With Quote #1

Quote:
Originally Posted by eyal282 View Post
It's annoying to put this every time, are both methods good or mine is bad?
PHP Code:
new Name[32];
get_user_name(idName31); 
Write function that will return array, it is very comfortable. https://forums.alliedmods.net/showth...44#post2531044
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-04-2017 , 18:08   Re: get_user_name vs client_infochanged variable
Reply With Quote #2

Quote:
Originally Posted by PRoSToTeM@ View Post
Write function that will return array, it is very comfortable. https://forums.alliedmods.net/showth...44#post2531044
I was told by a plugin approved to never return a string. I think he was an approver atleast.

For the other topic, I can't attach because it's private. But if it matters, get_user_name on average is called 6 times a minute.
eyal282 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-04-2017 , 23:12   Re: get_user_name vs client_infochanged variable
Reply With Quote #3

Quote:
Originally Posted by eyal282 View Post
For the other topic, I can't attach because it's private. But if it matters, get_user_name on average is called 6 times a minute.
You can attach any plugin to which you have the source code. Six times per minute is not fast in any way shape or form. Use get_user_name().

If you think that it is difficult to type out the required and trivial code to use a function a few times in a plugin then you probably should give up coding.
__________________
fysiks is online now
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:08.


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