SA-MP Forums Archive
Help me to explain some errors - 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: Help me to explain some errors (/showthread.php?tid=497768)



Help me to explain some errors - Miia - 28.02.2014

What should I do to fix those errors?

[17:45:37] Error: Function not registered: 'SSCANF_Init'
[17:45:37] Error: Function not registered: 'SSCANF_Join'
[17:45:37] Error: Function not registered: 'SSCANF_Leave'
[17:45:37] Error: Function not registered: 'mysql_query'
[17:45:37] Error: Function not registered: 'mysql_store_result'
[17:45:37] Error: Function not registered: 'mysql_num_rows'
[17:45:37] Error: Function not registered: 'mysql_retrieve_row'
[17:45:37] Error: Function not registered: 'mysql_fetch_field_row'
[17:45:37] Error: Function not registered: 'mysql_free_result'
[17:45:37] Error: Function not registered: 'mysql_close'
[17:45:37] Error: Function not registered: 'mysql_ping'
[17:45:37] Error: Function not registered: 'mysql_real_escape_string'
[17:45:37] Error: Function not registered: 'mysql_affected_rows'
[17:45:37] Error: Function not registered: 'sscanf'
[17:45:37] Error: Function not registered: 'mysql_debug'
[17:45:37] Error: Function not registered: 'WP_Hash'
[17:45:37] Error: Function not registered: 'mysql_connect'
[17:45:37] Error: Function not registered: 'mysql_stat'
[17:45:37] Error: Function not registered: 'mysql_insert_id'


Re: Help me to explain some errors - Konstantinos - 28.02.2014

Do you get any run time error after those messages? If yes, then the issue is that you loaded nativechecker before the other plugins when it should be last (in plugins line in server.cfg).


Re: Help me to explain some errors - Miia - 28.02.2014



This is the way I wrote them

Before I added nativechecker

Код:
SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[17:42:16] 
[17:42:16] Server Plugins
[17:42:16] --------------
[17:42:16]  Loading plugin: streamer
[17:42:16] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[17:42:16]   Loaded.
[17:42:16]  Loaded 1 plugins.

[17:42:16] 
[17:42:16] Filterscripts
[17:42:16] ---------------
[17:42:16]   Loading filterscript 'Tgarage.amx'...
[17:42:16]   Unable to load filterscript 'Tgarage.amx'.
[17:42:16]   Loading filterscript 'buttons.amx'...
[17:42:16]   Unable to load filterscript 'buttons.amx'.
[17:42:16]   Loading filterscript 'toll.amx'...
[17:42:16]   Unable to load filterscript 'toll.amx'.
[17:42:16]   Loaded 0 filterscripts.

[17:42:16] Script[gamemodes/ugrp.amx]: Run time error 19: "File or function is not found"
[17:42:16] Number of vehicle models: 0

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[17:44:58] 
[17:44:58] Server Plugins
[17:44:58] --------------
[17:44:58]  Loading plugin: streamer
[17:44:58] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[17:44:58]   Loaded.
[17:44:58]  Loaded 1 plugins.

[17:44:58] 
[17:44:58] Filterscripts
[17:44:58] ---------------
[17:44:58]   Loading filterscript 'Tgarage.amx'...
[17:44:58]   Unable to load filterscript 'Tgarage.amx'.
[17:44:58]   Loading filterscript 'buttons.amx'...
[17:44:58]   Unable to load filterscript 'buttons.amx'.
[17:44:58]   Loading filterscript 'toll.amx'...
[17:44:58]   Unable to load filterscript 'toll.amx'.
[17:44:58]   Loaded 0 filterscripts.

[17:44:58] Script[gamemodes/GM.amx]: Run
After I added native chekcer

Код:
SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[17:45:37] 
[17:45:37] Server Plugins
[17:45:37] --------------
[17:45:37]  Loading plugin: streamer
[17:45:37] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[17:45:37]   Loaded.
[17:45:37]  Loading plugin: nativechecker
[17:45:37]   Loaded.
[17:45:37]  Loaded 2 plugins.

[17:45:37] 
[17:45:37] Filterscripts
[17:45:37] ---------------
[17:45:37]   Loading filterscript 'Tgarage.amx'...
[17:45:37]   Unable to load filterscript 'Tgarage.amx'.
[17:45:37]   Loading filterscript 'buttons.amx'...
[17:45:37]   Unable to load filterscript 'buttons.amx'.
[17:45:37]   Loading filterscript 'toll.amx'...
[17:45:37]   Unable to load filterscript 'toll.amx'.
[17:45:37]   Loaded 0 filterscripts.

[17:45:37]    Error: Function not registered: 'SSCANF_Init'
[17:45:37]    Error: Function not registered: 'SSCANF_Join'
[17:45:37]    Error: Function not registered: 'SSCANF_Leave'
[17:45:37]    Error: Function not registered: 'mysql_query'
[17:45:37]    Error: Function not registered: 'mysql_store_result'
[17:45:37]    Error: Function not registered: 'mysql_num_rows'
[17:45:37]    Error: Function not registered: 'mysql_retrieve_row'
[17:45:37]    Error: Function not registered: 'mysql_fetch_field_row'
[17:45:37]    Error: Function not registered: 'mysql_free_result'
[17:45:37]    Error: Function not registered: 'mysql_close'
[17:45:37]    Error: Function not registered: 'mysql_ping'
[17:45:37]    Error: Function not registered: 'mysql_real_escape_string'
[17:45:37]    Error: Function not registered: 'mysql_affected_rows'
[17:45:37]    Error: Function not registered: 'sscanf'
[17:45:37]    Error: Function not registered: 'mysql_debug'
[17:45:37]    Error: Function not registered: 'WP_Hash'
[17:45:37]    Error: Function not registered: 'mysql_connect'
[17:45:37]    Error: Function not registered: 'mysql_stat'
[17:45:37]    Error: Function not registered: 'mysql_insert_id'
[17:45:37] Script[gamemodes/GM.amx]: Run time error 19: "File or function is not found"
[17:45:37] Number of vehicle models: 0



Re: Help me to explain some errors - Konstantinos - 28.02.2014

You'll also need to load sscanf plugin (2.8.1 version), mysql plugin (R6 version) and Whirlpool plugin.


Re: Help me to explain some errors - Miia - 28.02.2014

Of course, stupid me.

But now I got another problem.



Re: Help me to explain some errors - Konstantinos - 28.02.2014

Add libmysql.dll to the main folder (where samp-server.exe and server.cfg files are located). It's not a plugin to add it to the plugins folder and/or in server.cfg


Re: Help me to explain some errors - Miia - 28.02.2014

Perfect. Working, now I just need to figure out why it doesn't accept my mysql info.


Re: Help me to explain some errors - Konstantinos - 28.02.2014

Check the mysql logs, it may show more information about your problem (either connectioned failed because of not a MySQL server or wrong host/user/database/password).


Re: Help me to explain some errors - Miia - 28.02.2014

I just get the
[20:26:27] [MySQL] Could not connect to the MySQL server.

Probably the IP thats wrong, or?


Re: Help me to explain some errors - Konstantinos - 28.02.2014

Is the MySQL server online? Note that you should have WAMP installed and make it goes online before running the SA-MP server.