08.08.2011, 10:59
Quote:
Well instead of following that tutorial which is clearly teaching some horrible coding methods, then you should actually learn what the functions do and how the MySQL API works by reading the documentation on the SA-MP Wiki. There's plenty of it there that explains everything about the function.
If that's still troubling, there are plenty of resources around the internet for learning how to write good SQL code and practicing good coding techniques that make sense. There's also the official PAWN documentation at CompuPhase. I can't tell you how to fix this because there's so much wrong with it, it would just have to be completely re-written. I'm sure you could find a solution to your specific problem, but that's not going to change the vast majority of problems with this code! Note: There isn't just one missing mysql_free_result, there are several logical paths where it is missing. |