Originally Posted by
cloud_wizard
Alright, duly noted, done. Now stop. It has yet to even CALL the function MemoryReadString. The GetPlayerName function is the only function in which MemoryReadString is called, and it fails to call it because I'm reading the memory incorrectly. You're fixing a lot of mistakes in my code, but ones I haven't even gotten to yet. The main problem I'm having is with how I screwed up translating the code I found here: NoMorePasting.com to C++. Except I have no idea where I went wrong.
Also... Why are you telling me how I need to allocate memory for a string when:
It took me until now to realize this, but I've used strings without any kind of prior memory allocation several other places in my code with no problems. This should be no different. IDK what you do or don't know, but I kinda doubt you're "super familiar" with C++ (which makes asking for your help translating the code a dangerous endeavor in itself), but this problem (in fact, this whole forum) is about reading WoW's memory.
A for effort, but I've just spent the last 4 hours chasing imaginary bugs through working code rather than focusing on what actually needs to be fixed.