Thread: Hook Chat
View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-30-2024 , 23:33   Re: Hook Chat
Reply With Quote #11

I put quite a bit of effort into making quite simple instructions for you. Just follow the instructions and it will fix major issues with your plugin. AFTER doing those steps and re-testing, then you can add more code.

The latest version that you just posted has some serious mistakes that weren't there in your original code. The most abundant one is that you changed a most of the charsmax() to sizeof() which is completely wrong. When you are providing a function with the maximum string length for a variable, you must NOT use sizeof. You should use charsmax() for this.

The one correct change you made by when removing all the charsmax() functions was when you used strlen(sflags) in your for loop for the flag string.

You also removed a string variable that is required (szChatMessage in iHookSay()).

The least important change that you made was to randomly remove semicolons and add other random semicolons. This just makes it harder for me to investigate the functional changes that you've made.
__________________
fysiks is online now