MySQL Error: Function is not registered "mysql_connect" "mysql_close"
#1

Hey, im new to this forum and I got an question. So I decided to swap from Dini to MySQL. So I decided to follow an Tutorial on how to make an Login / Regsiter Tutorial with BlueG's Plugin. But as soon as I start the server, the server log says:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x-R2, ©2005-2013 SA-MP Team

[16:46:23]
[16:46:23] Server Plugins
[16:46:23] --------------
[16:46:23] Loading plugin: mysql.dll
[16:46:23] Failed.
[16:46:23] Loading plugin: sscanf.dll
[16:46:23]

[16:46:23] ===============================

[16:46:23] sscanf plugin loaded.

[16:46:23] Version: 2.8.1

[16:46:23] © 2012 Alex "Y_Less" Cole

[16:46:23] ===============================

[16:46:23] Loaded.
[16:46:23] Loading plugin: nativechecker.dll
[16:46:23] Loaded.
[16:46:23] Loaded 2 plugins.

[16:46:23]
[16:46:23] Filterscripts
[16:46:23] ---------------
[16:46:23] Loading filterscript 'gl_actions.amx'...
[16:46:23] Loading filterscript 'gl_realtime.amx'...
[16:46:23] Loading filterscript 'gl_property.amx'...
[16:46:23]
-----------------------------------
[16:46:23] Grand Larceny Property Filterscript
[16:46:23] -----------------------------------

[16:46:23] Loading filterscript 'gl_mapicon.amx'...
[16:46:23] Loading filterscript 'ls_mall.amx'...
[16:46:23] Loading filterscript 'attachments.amx'...
[16:46:23] Loading filterscript 'skinchanger.amx'...
[16:46:23]
--Admin Player Skin Changer Loaded

[16:46:23] Loading filterscript 'vspawner.amx'...
[16:46:23]
--Admin Vehicle Spawner Loaded

[16:46:23] Loaded 8 filterscripts.

[16:46:23] Error: Function not registered: 'mysql_connect'
[16:46:23] Error: Function not registered: 'mysql_close'
[16:46:23] Reading File: blank
[16:46:23] Reading File: properties/houses.txt
[16:46:23] Reading File: properties/businesses.txt
[16:46:23] Reading File: properties/banks.txt
[16:46:23] Reading File: properties/police.txt
[16:46:23] Script[gamemodes/script.amx]: Run time error 19: "File or function is not found"
[16:46:23] Number of vehicle models: 0

I havent got a clue what that could come from and I use the r31 Plugin because the tutorial was made with r31. It also doesnt work with r34. Hope some1 could help me..

Sincerly,
Johannes aka. iJohann3s aka #include
Reply
#2

[16:46:23] Loading plugin: mysql.dll
[16:46:23] Failed.

MySQL plugin failed to load that's why you get the run time error.
Reply
#3

[16:46:23] Loading plugin: mysql.dll
[16:46:23] Failed.

Your SQL plugin is not loading correctly. Are you sure you have compiled your gamemode with the correct includes and contain the latest libraries (libmysql.dll at your server folder & mysql.pdb at the plugins folder)?


EDIT: Ninja'd while waiting for post time to wear off.
Reply
#4

Yep I did already compile it but the log says also that:
[16:46:23] Error: Function not registered: 'mysql_connect'
[16:46:23] Error: Function not registered: 'mysql_close'
Reply
#5

error and more error I give up :/ :/
Reply
#6

Quote:
Originally Posted by elpana27
View Post
error and more error I give up :/ :/
Should've given up two years ago when the last post was made.. Just make sure you have the right plugin versions and if on linux, you or your host has installed the required MySQL libraries.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)