Hello World,
I used to be a front-end developer and I tried many different languages
and programs (AutoIT, PHP, Python, JavaScript,...), so I'm kinda familiar
with some coding stuff.
I've set up Sublime Text 2 to compile my .sma files easily
(thanks to
https://forums.alliedmods.net/showthread.php?t=293376)
and dived into some plugins to look into the code, only to find no comments
for the most part and different takes on certain things,
e.g. hooking SayText to manipulate the chat in certain ways.
Is there some kind of best practices coding snippets database?
Would some of you plugin gods mind to share some of your genius with us?
I hope this isn't too much to ask (and not a duplicate question), but I'm so confused.
I don't want to learn bad habits when coding plugins right off the bat and the API documentation
isn't too helpful sometimes either (
https://www.amxmodx.org/api/).
Also it doesn't have to be actual code snippets, although I believe that's what I learn from best.
Looking at existing code I get the grasp of what's happening, but I lack the
details on
why and
when I should do stuff in certain ways.
- LegacyCode
PS: I'm mainly talking about plugins for CS 1.6, but I would love to see more on this topic obviously