View Single Post
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 01-25-2019 , 19:04   Re: Novice needing sourcepawn help
Reply With Quote #8

Excellent, good to hear you were able to compile it and get it working the way you wanted.

An include won't do anything more than be included in the compilation of the plugin. It is up to the coder (you) to use what functions, forwards, natives, or stocks that it may have inside it. If none of it is used, you should remove the include as to reduce the size and it's just a good coding habit. In the case I presented earlier, the code used CPrintToChat which was inside of the include you wanted to use (colorvariables.inc). CPrintToChat has other functions inside of it that did all the work in finding the {yellow} color and replacing it with what CS:S uses in order to make the text appear that color when you specified it in your configuration file.

I'll do a step by step for you in trying to describe the replacement string in the first example I provided earlier.
Spoiler


I think this is what you will find most helpful in seeing the relationship of \xYY and where in the include it uses it.
https://github.com/ErikMinekus/sm-ad....inc#L966-L983
Maxximou5 is offline