SA-MP Forums Archive
Error: Function not registered - 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: Error: Function not registered (/showthread.php?tid=513097)



Error: Function not registered - Nezinuu - 14.05.2014

Code:
[17:34:38]    Error: Function not registered: 'SSCANF_Init'
[17:34:38]    Error: Function not registered: 'SSCANF_Join'
[17:34:38]    Error: Function not registered: 'SSCANF_Leave'
[17:34:38]    Error: Function not registered: 'mysql_connect'
[17:34:38]    Error: Function not registered: 'mysql_query'
[17:34:38]    Error: Function not registered: 'mysql_store_result'
[17:34:38]    Error: Function not registered: 'mysql_num_rows'
[17:34:38] [MySQL] Error (0): Function: mysql_connect failed, mysql was not initialized on this handle.
/\
Hey. Can anyone help me fix this function error? I dont have any idea how to do that.

This show when someone connect to server
\/

Code:
[17:35:30] Incoming connection: 127.0.0.1:63602
[17:35:30] [join] Nickname has joined the server (0:127.0.0.1)
[17:35:30] [debug] Server crashed while executing srv.amx
[17:35:30] [debug] AMX backtrace:
[17:35:30] [debug] #0 native mysql_query () [10007780] from mysql.DLL
[17:35:30] [debug] #1 0000602c in public SSCANF_OnPlayerConnect (0x00000000) from srv.amx
[17:35:30] [debug] #2 000001d8 in public OnPlayerConnect (0x00000000) from srv.amx
[17:35:32] [debug] Native backtrace:
[17:35:32] [debug] #0 100042ea in ?? () from plugins\mysql.DLL
[17:35:32] [debug] #1 10007820 in ?? () from plugins\mysql.DLL
[17:35:32] [debug] #2 004010b6 in ?? () from samp-server.exe
[17:35:32] [debug] #3 61d049ca in ?? () from plugins\crashdetect.DLL
[17:35:32] [debug] #4 61d0681f in ?? () from plugins\crashdetect.DLL
[17:35:32] [debug] #5 61cf9b84 in ?? () from plugins\crashdetect.DLL
[17:35:32] [debug] #6 61d04a1a in ?? () from plugins\crashdetect.DLL
[17:35:32] [debug] #7 0046cc20 in ?? () from samp-server.exe
[17:35:32] [debug] #8 00465f3f in ?? () from samp-server.exe
[17:35:32] [debug] #9 00493b36 in ?? () from samp-server.exe
[17:35:32] [debug] #10 00469089 in ?? () from samp-server.exe
[17:35:32] [debug] #11 00493bf1 in ?? () from samp-server.exe
[17:35:32] [debug] #12 0048f0e4 in ?? () from samp-server.exe
[17:35:32] [debug] #13 458d5151 in ?? () from samp-server.exe
[17:35:32] [debug] #14 15ff50f8 in ?? () from samp-server.exe
[17:35:32] [debug] #15 004a70c4 in ?? () from samp-server.exe
If need something else for information. Just ask.


Re: Error: Function not registered - Scottas - 14.05.2014

Do you have these plugins in plugins folder, and their names are written in server.cfg file (line plugins)?


Re: Error: Function not registered - Nezinuu - 14.05.2014

Quote:

plugins nativechecker mysql sscanf streamer Whirlpool

http://prntscr.com/3j5px3


Re: Error: Function not registered - Kirollos - 14.05.2014

Quote:
Originally Posted by Nezinuu
View Post
You should put "nativechecker" at the end of "plugins" line in server.cfg

Quote:
Originally Posted by Wyu
View Post
IMPORTANT: In order to make it work correcly you must put it in the end of the plugins line of your server.cfg so it will be the last one, e.g. plugins sscanf streamer nativechecker.
http://forum.sa-mp.com/showthread.ph...35#post1168935


Re: Error: Function not registered - Scottas - 14.05.2014

Maybe your plugins are outdated. Update your includes and plugins.


Re: Error: Function not registered - Nezinuu - 14.05.2014

Then it show only this: http://prntscr.com/3j5rq0


Re: Error: Function not registered - Kirollos - 14.05.2014

Quote:
Originally Posted by Nezinuu
View Post
Then it show only this: http://prntscr.com/3j5rq0
Which MySQL plugin do you use?


Re: Error: Function not registered - Nezinuu - 14.05.2014

Quote:
Originally Posted by Scottas
View Post
Maybe your plugins are outdated. Update your includes and plugins.
If im right plugins and includes downloaded then its newest from:

https://sampforum.blast.hk/showthread.php?tid=122983
https://sampforum.blast.hk/showthread.php?tid=120356


Re: Error: Function not registered - Nezinuu - 14.05.2014

Quote:
Originally Posted by Kirollos
View Post
Which MySQL plugin do you use?
I downloaded it here: https://sampforum.blast.hk/showthread.php?tid=122983


Re: Error: Function not registered - Konstantinos - 14.05.2014

Use mysql_init function before mysql_connect.