(01-02-2016, 06:50 PM)Rebirth Wrote: After reading through this messy ... "code", if it deserves the title (on times you have included heavy libraries 5 times into the same file, ok, ok..)
You can add a PlayerBase exception, this will stop people abusing them and having nearly endless cash.
The Code is written in C but fully compatible to your Cpp source, you can convert it easily, I've commented the critical part with Cpp equivalent functions > http://pastebin.com/fcz5nUu4
And since you are using them in DLLs replace the int main(...) with a function name ... e.g. int EXPORT baseDealerEx(...) , export as #define in the headers.
I hope you don't mind when I take a copy of the source you gave us and use it for my own purpose.
Thank you by the way.
Keep in mind a large amount of this code is between 6 and 9 years old and went through many different hands. Things have greatly improved over time and if you find "messy code" you're welcome to do the proper modifications, test them and send a pull request. I'm sure what's left of FLHook coders spread over the last few FL mods standing will appreciate.
If you want to implement new stuff, same thing. Do the modifications to the plugin to integrate your code and send a pull request. I'm not going to convert your code myself.