MySQL error! Please HELP
#1

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
Reply
#2

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

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))
{
      ...
}
Reply
#4

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.
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)