Quote:
Originally Posted by OciXCrom
You mean users will need to use a different editor in order to do that? What I want to do is simply add a #include which will contain a #define or something like that which will replace all print_chat messages with a custom function. If it requires down loading/using additional files, I can live without it. The point is to keep it simple and easy for people to use.
|
Regex a very powerful tool that can be used to make many things much easier and quicker. I actually use it several times a week. Therefore, for me, this is a simple task.
If you really want to do it as you suggest with a simple precompiler definition, you'll need to have a function with the same prototype. In that function, you need to check if the second parameter is print_chat. If it is, do the modified functionality otherwise call client_print() like normal.
__________________