SA-MP Forums Archive
MYSQL Errors. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MYSQL Errors. (/showthread.php?tid=554259)



MYSQL Errors. - Glossy42O - 02.01.2015

.......................hi....................


Re: MYSQL Errors. - Sledgehammer - 02.01.2015

Add the following to the top of your script (Not in any callbacks).
pawn Код:
new mysql;



Re: MYSQL Errors. - Glossy42O - 02.01.2015

It just says that it's already defined.


Re: MYSQL Errors. - Sledgehammer - 02.01.2015

Make sure its defined near the top of your script (or at-least before the error).


Re: MYSQL Errors. - Glossy42O - 02.01.2015

Yeah. it is.


Re: MYSQL Errors. - Sledgehammer - 02.01.2015

I am not to sure whats gone wrong, but as a last resort I suggest changing the variable name to something else.

I.e- Change "mysql" to "gHandle".


Re: MYSQL Errors. - Glossy42O - 02.01.2015

Same.. anyone else?


Re: MYSQL Errors. - Sledgehammer - 02.01.2015

Can you show how you defined mysql please.


Re: MYSQL Errors. - Glossy42O - 02.01.2015

#include <a_mysql>

R39 2.


Re: MYSQL Errors. - Sledgehammer - 02.01.2015

Quote:
Originally Posted by Death1300
Посмотреть сообщение
I am not to sure whats gone wrong, but as a last resort I suggest changing the variable name to something else.

I.e- Change "mysql" to "gHandle".
I did suggest that. Glad to know its fixed.