Quote:
Originally Posted by [uL]Pottus
Thank-you, I really think using includes is the way to go it's only a few lines and sure you could jam it into your gamemode but this way if there is a problem it's as simple as commenting out one line and there is absolutely no confusion over what the code actually does by far the best approach and really the only approach I would consider taking to create any system.
|
I completely agree with you here. It makes the code more easy to read by the human-eye, then you can resolve any bugs/issues that you may be facing, then fix it as you said by commenting out one line at a time, to find the real problem. As long as the includes are working as they should, you'd have no issues with them so that means any coding error must be in what you (the original creator of any script that uses includes(which is more or less everyone, besides the a_samp and SA-MP includes that come with the server package), not you
).
It's all tit-for-tat, everything falls together in the end with help from others, but making it easier to read, not only for yourself but for the people helping will also make sure that the forum members can see the code clearly and if I was to look at some code that was neatly presented that had an issue, I'd more than likely be able to resolve it 100 times quicker than I would with messed up, unindented code.
Sorry for the wee rant there, had to be done tonight because I felt like I was going to explode for some strange reason, I've got my tappity tap fingers out, typing galore! Haha.