Raised This Month: $ Target: $400
 0% 

Solved Questions about optimization and cs_set_user_team()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-03-2020 , 09:55   Re: Questions about optimization and cs_set_user_team()
Reply With Quote #1

I want to add that the "sz" thing(hungarian notation) is a matter of style and you are not required to use it. IMO it is not needed anyway as long as you make an effort to name your variables properly.
For example playersCount is clearly a number(integer), naming it iPlayersCount doesn't add any useful information and can make certain variable names too verbose.
Another example: fileLine[128] is clearly a string, you know that even if it's not prefixed with sz.

Anyway, as with any coding style related topic, the most important thing is to pick a style and be consitent. Don't mix multiple styles in the same code and you are good.
__________________

Last edited by HamletEagle; 06-03-2020 at 09:59.
HamletEagle 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 16:56.


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