Searching MySQL plugin
#1

Hello guys, I am searching for MySQL plugin, newest && fastest one. Can someone advise me, which one is best to use?
Reply
#2

Take a look : https://sampforum.blast.hk/showthread.php?tid=56564

the newest was released yesterday

https://github.com/pBlueG/SA-MP-MySQL/releases
Reply
#3

Nice, thanks!
Reply
#4

Well I am having troubles, now I tried to download it (latest release). I put .dll to plugins, edited server.cfg, include a_mysql copied to pawno include folder, also added include to gamemode. But I don't understand becouse I am having these errors:

error 017: undefined symbol "mysql_ping"
error 035: argument type mismatch (argument 1)

lines:
pawn Код:
if(mysql_ping() == 1) //this
{
    print("Connection successfull!");
}

mysql_query(string); //mistmatch :O
Reply
#5

  • mysql_ping has been removed for some reason, here's a sample how you check connection etc..
  • mysql_query its parameter has been changed, so you better check mysql_pquery and mysql_tquery.
    - for more information read MySQL wikipedia


pawn Код:
print( ( !mysql_errno() ) ? ("Connection successfull") : ("Connection Failed") );
Reply
#6

pguery and tquery needs callback function to work. I need to create for each query format new callback? Or how it is works?

//EDIT Yeah its optional now i saw but if you know what is difference beetween pquery and tquery?
Reply
#7

Quote:
Originally Posted by SA-MP Wiki
myqsl_pquery sends a query which will be executed in another thread concurrently and calls the callback (if there is one) when the execution is finished.

mysql_tquery sends a query which will be executed in another thread and calls the callback (if there is one) when the execution is finished.
4char.
Reply
#8

What means that it will be executed in another thread? //i know what it means but dont know in example
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)