SA-MP Forums Archive
MySQL R7 to R34 - 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 R7 to R34 (/showthread.php?tid=614356)



MySQL R7 to R34 - xXtremeXx - 07.08.2016

Guys I'm getting this error:-
PHP код:
error 017undefined symbol "enable_mutex"
error 017undefined symbol "mysql_ping" 
I was converting MySQL R7 to MySQL R34. Kindly tell me how to get them fixed.


Re: MySQL R7 to R34 - Shinja - 07.08.2016

mysql_ping is not supported for +R33
use a variable to store connectionHandle and make it default -1


Re: MySQL R7 to R34 - xXtremeXx - 07.08.2016

Here's the code for enable_mutex:-
PHP код:
    #if debug
        
mysql_debug(1);
    
#else
        
mysql_debug(0);
    
#endif
    
enable_mutex(false);
    
g_mysql_handle mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_DATABASE,MYSQL_PASSWORD); 
Here's the code for mysql_ping:-
PHP код:
    if(g_mysql_handle)
        
mysql_close(g_mysql_handle);
    while(
mysql_ping(g_mysql_handle) == 1) {
        
#emit NOP
    

Kindly tell me what should I add or change.