13.07.2014, 09:16
Quote:
The easiest way is probably to group your code into sections, e.g. Housing, Businesses. And then put a comment above the section saying what it is. Then when you need to work on it just CTRL+F and search for it. That's probably the most simple method but it can help.
|
Quote:
If you have issues with having over 10k lines, you should probably try to make a modular gamemode.
I keep my scripts in a general order (includes first, defines, enums, arrays, variables, public functions, commands, custom public functions, stocks) and comment new sections out so I can easily CTRL + F to them. Also, memorizing your code helps tremendously when you need to edit existing code. That being said, I usually write new code in filterscripts since I tend to get lost in a bigger gamemode. |