SA-MP Forums Archive
MySQL error! Please HELP - 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 error! Please HELP (/showthread.php?tid=425602)



MySQL error! Please HELP - electrux - 26.03.2013

Hello i just started using mysql.
I am using BlueG's mysql plugin 'R7: Server plugin (VS9)'.
The problem is that whenever i try to add this:
Код:
new mysql = mysql_connect("127.0.0.1","root","mydatabase","mypass");
and compile, it just stops compiling and says:
Код:
Pawn Compiler library has stopped working.
I tried WITHOUT using the above code and it works properly. Please help me!!thanks

Regards
electrux


Re: MySQL error! Please HELP - Djole1337 - 26.03.2013

pawn Код:
new mysql;
mysql = mysql_connect(...);



Re: MySQL error! Please HELP - electrux - 26.03.2013

Oh... thx that worked . But now it tells:
Код:
D:\sampserver\gamemodes\sys.pwn(166) : error 017: undefined symbol "mysql_query"
This is line 166:
Код:
if(mysql_query(query))
{
      ...
}



Re: MySQL error! Please HELP - Dzines4SAMP - 26.03.2013

New mysql_query, the one above is not in use.

pawn Код:
#define mysql_query(%1,%2,%3,%4) \
    mysql_function_query(%4, %1, false, "OnQueryFinish", "siii", %1, %2, %3, %4)
mysql_query is now mysql_function_query.


Re: MySQL error! Please HELP - emokidx - 26.03.2013

https://sampforum.blast.hk/showthread.php?tid=337810