Small error with MySQL. - 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: Small error with MySQL. (
/showthread.php?tid=533518)
Small error with MySQL. -
Gogorakis - 25.08.2014
Hey guys..I just set up "nativechecker" plugin in my server to detect the errors..
Here:
Code:
[04:59:59] Error: Function not registered: 'mysql_real_escape_string'
[04:59:59] Error: Function not registered: 'mysql_store_result'
[04:59:59] Error: Function not registered: 'mysql_num_rows'
[04:59:59] Error: Function not registered: 'mysql_fetch_row'
[04:59:59] Error: Function not registered: 'mysql_free_result'
[04:59:59] Error: Function not registered: 'mysql_fetch_field'
[04:59:59] Error: Function not registered: 'mysql_init'
[04:59:59] Error: Function not registered: 'mysql_ping'
Should I update mysql or something?
Re: Small error with MySQL. -
Gogorakis - 25.08.2014
Is there any scripting problem?
By the way..
server-log
Code:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team
[05:14:00] filterscripts = "" (string)
[05:14:00] weburl = "www.sa-mp.com" (string)
[05:14:00]
[05:14:00] Server Plugins
[05:14:00] --------------
[05:14:00] Loading plugin: sscanf
[05:14:00]
[05:14:00] ===============================
[05:14:00] sscanf plugin loaded.
[05:14:00] Version: 2.8.1
[05:14:00] © 2012 Alex "******" Cole
[05:14:00] ===============================
[05:14:00] Loaded.
[05:14:00] Loading plugin: streamer
[05:14:00] Loaded.
[05:14:00] Loading plugin: Whirlpool
[05:14:00]
[05:14:00] ==================
[05:14:00]
[05:14:00] Whirlpool loaded
[05:14:00]
[05:14:00] ==================
[05:14:00]
[05:14:00] Loaded.
[05:14:00] Loading plugin: mysql
[05:14:00] >> plugin.mysql: R39-2 successfully loaded.
[05:14:00] Loaded.
[05:14:00] Loading plugin: nativechecker
[05:14:00] Loaded.
[05:14:00] Loaded 5 plugins.
[05:14:00]
[05:14:00] Filterscripts
[05:14:00] ---------------
[05:14:00] Loaded 0 filterscripts.
[05:14:00] Error: Function not registered: 'mysql_real_escape_string'
[05:14:00] Error: Function not registered: 'mysql_store_result'
[05:14:00] Error: Function not registered: 'mysql_num_rows'
[05:14:00] Error: Function not registered: 'mysql_fetch_row'
[05:14:00] Error: Function not registered: 'mysql_free_result'
[05:14:00] Error: Function not registered: 'mysql_fetch_field'
[05:14:00] Error: Function not registered: 'mysql_init'
[05:14:00] Error: Function not registered: 'mysql_ping'
[05:14:00] Script[gamemodes/gamemode_2.2.4.amx]: Run time error 19: "File or function is not found"
[05:14:00] Number of vehicle models: 0
Re: Small error with MySQL. -
Smally - 25.08.2014
I believe you are using a version of the MySQL plugin which is too new for your script, I know that mysql_real_escape_string was in R7, so try somewhere around there.
Re: Small error with MySQL. -
ThePhenix - 25.08.2014
I suggest you to simply update both MySQL include and plugin, so that you won't have any hassle anymore.
Re: Small error with MySQL. -
God'Z War - 25.08.2014
Your not using the right mysql plugin for your script.
Check which version your using
and dont update your plugin only. Because there is different script for different update.
Re: Small error with MySQL. -
Gogorakis - 25.08.2014
Thanks guys! I am going to try all of your ideas!
Re: Small error with MySQL. -
Gogorakis - 25.08.2014
Which version is this?:
Code:
[17:05:44] Error: Function not registered: 'mysql_query'
[17:05:44] Error: Function not registered: 'mysql_fetch_row'
[17:05:44] Error: Function not registered: 'mysql_init'
Re: Small error with MySQL. -
Gogorakis - 25.08.2014
Ahh..Anyone?
Re: Small error with MySQL. -
adithegman - 25.08.2014
maybe you are using a newer version of MySQL on which these function do not exist... check the wiki