stered: 'mysql_reconnect' [15:53:51] Script[gamemodes/DEV.amx]: Run time error 19: "File or function is not found"
#1

So I swear I have tried a thousand different things... I just got native checker but idk how to read their errors. I know Runtime 19 is a plugin or .inc issue but i updated all plugins.

Код:
[15:53:50] Server Plugins
[15:53:50] --------------
[15:53:50]  Loading plugin: sscanf.so
[15:53:50] 

[15:53:50]  ===============================

[15:53:50]       sscanf plugin loaded.     

[15:53:50]          Version:  2.8.1        

[15:53:50]    © 2012 Alex "******" Cole  

[15:53:50]  ===============================

[15:53:50]   Loaded.
[15:53:50]  Loading plugin: streamer.so
[15:53:50]   Loaded.
[15:53:50]  Loading plugin: mysql.so
[15:53:50]  SA:MP MySQL Plugin v2.1.1 Loaded.
[15:53:50]   Loaded.
[15:53:50]  Loading plugin: MapAndreas.so
[15:53:50] [MySQL] Thread running. Threadsafe: Yes.
[15:53:50]   Loaded.
[15:53:50]  Loading plugin: Whirlpool.so
[15:53:50]  
[15:53:50]  ==================
[15:53:50]  
[15:53:50]   Whirlpool loaded
[15:53:50]  
[15:53:50]  ==================
[15:53:50]  
[15:53:50]   Loaded.
[15:53:50]  Loading plugin: nativechecker.so
[15:53:50]   Loaded.
[15:53:50]  Loaded 6 plugins.

[15:53:50] 
[15:53:50] Filterscripts
[15:53:50] ---------------
[15:53:50]   Loaded 0 filterscripts.

[15:53:51]    Error: Function not registered: 'cache_get_data'
[15:53:51]    Error: Function not registered: 'cache_get_field_content'
[15:53:51]    Error: Function not registered: 'mysql_tquery'
[15:53:51]    Error: Function not registered: 'mysql_escape_string'
[15:53:51]    Error: Function not registered: 'cache_get_row'
[15:53:51]    Error: Function not registered: 'cache_affected_rows'
[15:53:51]    Error: Function not registered: 'mysql_reconnect'
[15:53:51] Script[gamemodes/DEV.amx]: Run time error 19: "File or function is not found"
[15:53:51] Number of vehicle models: 0
Reply
#2

You're using wrong plugin.

This one is StrickenKid's plugin:
Код:
[15:53:50]  Loading plugin: mysql.so
[15:53:50]  SA:MP MySQL Plugin v2.1.1 Loaded.
You need BlueG's plugin R38: https://github.com/pBlueG/SA-MP-MySQL/releases
Reply
#3

Код:
[16:11:25]  Loading plugin: mysql.so
[16:11:25]   Failed (plugins/mysql.so: symbol __cxa_pure_virtual, version libmysqlclient_16 not defined in file libmysqlclient_r.so.16 with link time reference
Reply
#4

Q: I get a Failed (plugins/mysql.so: symbol __cxa_pure_virtual, version libmysqlclient_16[...] error, is there any way to fix it?
A: That likely means that you are using a 64bit system and thus a 64bit libmysqlclient library. You'll have to use the static version of the plugin, the mysql_static.so.
Reply
#5

Quote:
Originally Posted by Johnny_Robins
Посмотреть сообщение
Код:
[16:11:25]  Loading plugin: mysql.so
[16:11:25]   Failed (plugins/mysql.so: symbol __cxa_pure_virtual, version libmysqlclient_16 not defined in file libmysqlclient_r.so.16 with link time reference
Took from the description from Github:

Q: I get a Failed (plugins/mysql.so: symbol __cxa_pure_virtual, version libmysqlclient_16[...] error, is there any way to fix it?
A: That likely means that you are using a 64bit system and thus a 64bit libmysqlclient library. You'll have to use the static version of the plugin, the mysql_static.so.
Reply
#6

I loaded the mysql_static.so instead this time. It works now thanks !!!
Reply
#7

okay so now that the mysql plugin is functional i try to recompile the script with the new .inc

Код:
C:\Users\Dylan\Desktop\New folder (2)\gamemodes\DEV.pwn(26981) : error 017: undefined symbol "mysql_affected_rows"
C:\Users\Dylan\Desktop\New folder (2)\gamemodes\DEV.pwn(49963) : error 017: undefined symbol "mysql_affected_rows"
C:\Users\Dylan\Desktop\New folder (2)\gamemodes\DEV.pwn(65117) : error 017: undefined symbol "mysql_affected_rows"
Reply
#8

https://sampwiki.blast.hk/wiki/MySQL/R33..._affected_rows
Reply
#9

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Are you saying I should change the mysql_affected_rows to cache_affected_rows
Reply
#10

Yes. mysql_affected_rows doesn't exist to the latest versions and it has been replaced with the cache_affected_rows function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)