MySQL
#4

Quote:
Originally Posted by Markx
Посмотреть сообщение
That was a bit to advanced for me..Well i followed this tutorial, and it seems it failed very bad. Could you explain me how to fix it?

EDIT: Yeah i see the missing mysql_free_result();
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.
Reply


Messages In This Thread
MySQL - by Markx - 08.08.2011, 10:26
Re: MySQL - by JaTochNietDan - 08.08.2011, 10:36
Re: MySQL - by Markx - 08.08.2011, 10:43
Re: MySQL - by JaTochNietDan - 08.08.2011, 10:48
Re: MySQL - by Markx - 08.08.2011, 10:59
Re: MySQL - by JaTochNietDan - 08.08.2011, 11:01
Re: MySQL - by Markx - 08.08.2011, 11:06
Re: MySQL - by [HiC]TheKiller - 08.08.2011, 11:08
Re: MySQL - by Markx - 08.08.2011, 11:09
Re: MySQL - by JaTochNietDan - 08.08.2011, 11:11

Forum Jump:


Users browsing this thread: 1 Guest(s)