SA-MP Forums Archive
Functions not registered when they are - 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: Functions not registered when they are (/showthread.php?tid=613674)



Functions not registered when they are - biker122 - 30.07.2016

I get these errors in the console, these are my plugin/include versions:
sscanf = sscanf2 (master-copy-2)
streamer = version 2.8.2
IRC = 1.4.8 NON-SSL
MySQL = R5 (dont ask me to upgrade please)
Код:
[19:40:37]    Error: Function not registered: 'SSCANF_Init'
[19:40:37]    Error: Function not registered: 'SSCANF_Join'
[19:40:37]    Error: Function not registered: 'SSCANF_Leave'
[19:40:37]    Error: Function not registered: 'IRC_GetUserChannelMode'
[19:40:37]    Error: Function not registered: 'mysql_query'
[19:40:37]    Error: Function not registered: 'mysql_store_result'
[19:40:37]    Error: Function not registered: 'mysql_num_rows'
[19:40:37]    Error: Function not registered: 'mysql_fetch_row_format'
[19:40:37]    Error: Function not registered: 'sscanf'
[19:40:37]    Error: Function not registered: 'mysql_free_result'
[19:40:37]    Error: Function not registered: 'CreateDynamicMapIcon'
[19:40:37]    Error: Function not registered: 'CreateDynamicPickup'
[19:40:37]    Error: Function not registered: 'CreateDynamic3DTextLabel'
[19:40:37]    Error: Function not registered: 'DestroyDynamicMapIcon'
[19:40:37]    Error: Function not registered: 'UpdateDynamic3DTextLabelText'
[19:40:37]    Error: Function not registered: 'CreateDynamicObject'
[19:40:37]    Error: Function not registered: 'DestroyDynamicPickup'
[19:40:37]    Error: Function not registered: 'DestroyDynamicCP'
[19:40:37]    Error: Function not registered: 'CreateDynamicCP'
[19:40:37]    Error: Function not registered: 'DestroyDynamic3DTextLabel'
[19:40:37]    Error: Function not registered: 'mysql_connect'
[19:40:37]    Error: Function not registered: 'mysql_debug'
[19:40:37]    Error: Function not registered: 'IRC_Quit'
[19:40:37]    Error: Function not registered: 'IRC_DestroyGroup'
[19:40:37]    Error: Function not registered: 'IsPlayerInDynamicCP'
[19:40:37]    Error: Function not registered: 'IRC_GroupSay'
[19:40:37]    Error: Function not registered: 'IRC_SendRaw'
[19:40:37]    Error: Function not registered: 'IRC_JoinChannel'
[19:40:37]    Error: Function not registered: 'IRC_AddToGroup'
[19:40:37]    Error: Function not registered: 'IRC_RemoveFromGroup'
[19:40:37]    Error: Function not registered: 'IRC_Connect'
[19:40:37]    Error: Function not registered: 'IRC_Notice'
[19:40:37]    Error: Function not registered: 'IRC_Say'
[19:40:37]    Error: Function not registered: 'DestroyDynamicObject'
[19:40:37]    Error: Function not registered: 'IsValidDynamic3DTextLabel'
[19:40:37]    Error: Function not registered: 'IRC_IsUserOnChannel'
[19:40:37]    Error: Function not registered: 'IRC_KickUser'
[19:40:37]    Error: Function not registered: 'AttachDynamicObjectToVehicle'
[19:40:37]    Error: Function not registered: 'mysql_retrieve_row'
[19:40:37]    Error: Function not registered: 'mysql_fetch_field_row'
[19:40:37]    Error: Function not registered: 'mysql_real_escape_string'
[19:40:37]    Error: Function not registered: 'IsValidDynamicCP'
[19:40:37]    Error: Function not registered: 'GetDynamicObjectPos'
[19:40:37]    Error: Function not registered: 'MoveDynamicObject'
When I load the objects filterscript, i get those on console:
Код:
[19:55:47] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[19:55:48] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[19:55:48] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[19:55:48] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[19:55:48] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[19:55:48] [debug] Run time error 20: "Invalid index parameter (bad entry point)"



Re: Functions not registered when they are - Misiur - 30.07.2016

You've got crashdetect? Outdated version will throw those "run time error 20". Update it from here https://github.com/Zeex/samp-plugin-...etect/releases . About other errors, you sure you've got all plugins in plugin folder?


Re: Functions not registered when they are - biker122 - 30.07.2016

Yes, I've got crashdetect plugin. It does nothing actually, it didn't even print the errors that I posted. I used nativechecker to get the errors that I showed before. And yes, I have all the plugins in "plugins" folder.


Re: Functions not registered when they are - Luicy. - 30.07.2016

You must include them in server.cfg at line plugins


Re: Functions not registered when they are - biker122 - 30.07.2016

I'm not that dumb, I've placed the plugins in "plugins" folder, and placed their names in "server.cfg -> plugins" line.


Re: Functions not registered when they are - Konstantinos - 30.07.2016

Quote:
Originally Posted by biker122
Посмотреть сообщение
Yes, I've got crashdetect plugin. It does nothing actually, it didn't even print the errors that I posted. I used nativechecker to get the errors that I showed before. And yes, I have all the plugins in "plugins" folder.
As long as you didn't get anything from crashdetect (name of functions) and you didn't get a run time error 19, everything is good. The problem here is that you didn't load nativechecker last as the important note in its threads states.

Remove nativechecker completely and keep crashdetect only, it does the same job (for not registered functions) plus more.

In general: posting the whole server log is always helpful for that matter.


Re: Functions not registered when they are - biker122 - 30.07.2016

I tried to use nativechecker and crashdetect separately, and found out that these errors in the console are printed ONLY when I use nativechecker.

Server log, while using crashdetect plugin:
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[20:29:58] 
[20:29:58] Server Plugins
[20:29:58] --------------
[20:29:58]  Loading plugin: crashdetect
[20:29:58]   CrashDetect v4.15.1 is OK.
[20:29:58]   Loaded.
[20:29:58]  Loading plugin: sscanf
[20:29:58] 

[20:29:58]  ===============================

[20:29:58]       sscanf plugin loaded.     

[20:29:58]          Version:  2.8.1        

[20:29:58]    © 2012 Alex "******" Cole  

[20:29:58]  ===============================

[20:29:58]   Loaded.
[20:29:58]  Loading plugin: streamer
[20:29:58] 

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

[20:29:58]   Loaded.
[20:29:58]  Loading plugin: mysql
[20:29:58] 

  > MySQL plugin R5 successfully loaded.

[20:29:58]   Loaded.
[20:29:58]  Loading plugin: irc
[20:29:58] 

*** IRC Plugin v1.4.8 by Incognito loaded ***

[20:29:58]   Loaded.
[20:29:58]  Loaded 5 plugins.

[20:29:58] 
[20:29:58] Filterscripts
[20:29:58] ---------------
[20:29:58]   Loading filterscript 'objects.amx'...
[20:29:58]   Loaded 1 filterscripts.

[20:29:58] =================== Server Info: ===================
[20:29:58] Read Commands:   0
[20:29:58] Read PMs:        1
[20:29:58] Kick Bots:       0
[20:29:58] Allow Caps:      1
[20:29:58] Disconnect Msgs: 1
[20:29:58] Anti Ping:	 0
[20:29:58] Max Ping:	 0
[20:29:58] Server Kills:    0
[20:29:58] =================== Finished loading ===================
[20:30:00] .::. Loaded 811 houses .::.
[20:30:00] 
[20:30:00] Number of vehicle models: 110
Server log, while using nativechecker plugin:
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[20:31:11] 
[20:31:11] Server Plugins
[20:31:11] --------------
[20:31:11]  Loading plugin: nativechecker
[20:31:11]   Loaded.
[20:31:11]  Loading plugin: sscanf
[20:31:11] 

[20:31:11]  ===============================

[20:31:11]       sscanf plugin loaded.     

[20:31:11]          Version:  2.8.1        

[20:31:11]    © 2012 Alex "******" Cole  

[20:31:11]  ===============================

[20:31:11]   Loaded.
[20:31:11]  Loading plugin: streamer
[20:31:11] 

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

[20:31:11]   Loaded.
[20:31:11]  Loading plugin: mysql
[20:31:11] 

  > MySQL plugin R5 successfully loaded.

[20:31:11]   Loaded.
[20:31:11]  Loading plugin: irc
[20:31:11] 

*** IRC Plugin v1.4.8 by Incognito loaded ***

[20:31:11]   Loaded.
[20:31:11]  Loaded 5 plugins.

[20:31:11] 
[20:31:11] Filterscripts
[20:31:11] ---------------
[20:31:11]   Loading filterscript 'objects.amx'...
[20:31:11]    Error: Function not registered: 'CreateDynamicObject'
[20:31:11]    Error: Function not registered: 'SetDynamicObjectMaterial'
[20:31:11]   Loaded 1 filterscripts.

[20:31:11]    Error: Function not registered: 'SSCANF_Init'
[20:31:11]    Error: Function not registered: 'SSCANF_Join'
[20:31:11]    Error: Function not registered: 'SSCANF_Leave'
[20:31:11]    Error: Function not registered: 'IRC_GetUserChannelMode'
[20:31:11]    Error: Function not registered: 'mysql_query'
[20:31:11]    Error: Function not registered: 'mysql_store_result'
[20:31:11]    Error: Function not registered: 'mysql_num_rows'
[20:31:11]    Error: Function not registered: 'mysql_fetch_row_format'
[20:31:11]    Error: Function not registered: 'sscanf'
[20:31:11]    Error: Function not registered: 'mysql_free_result'
[20:31:11]    Error: Function not registered: 'CreateDynamicMapIcon'
[20:31:11]    Error: Function not registered: 'CreateDynamicPickup'
[20:31:11]    Error: Function not registered: 'CreateDynamic3DTextLabel'
[20:31:11]    Error: Function not registered: 'DestroyDynamicMapIcon'
[20:31:11]    Error: Function not registered: 'UpdateDynamic3DTextLabelText'
[20:31:11]    Error: Function not registered: 'CreateDynamicObject'
[20:31:11]    Error: Function not registered: 'DestroyDynamicPickup'
[20:31:11]    Error: Function not registered: 'DestroyDynamicCP'
[20:31:11]    Error: Function not registered: 'CreateDynamicCP'
[20:31:11]    Error: Function not registered: 'DestroyDynamic3DTextLabel'
[20:31:11]    Error: Function not registered: 'mysql_connect'
[20:31:11]    Error: Function not registered: 'mysql_debug'
[20:31:11]    Error: Function not registered: 'IRC_Quit'
[20:31:11]    Error: Function not registered: 'IRC_DestroyGroup'
[20:31:11]    Error: Function not registered: 'IsPlayerInDynamicCP'
[20:31:11]    Error: Function not registered: 'IRC_GroupSay'
[20:31:11]    Error: Function not registered: 'IRC_SendRaw'
[20:31:11]    Error: Function not registered: 'IRC_JoinChannel'
[20:31:11]    Error: Function not registered: 'IRC_AddToGroup'
[20:31:11]    Error: Function not registered: 'IRC_RemoveFromGroup'
[20:31:11]    Error: Function not registered: 'IRC_Connect'
[20:31:11]    Error: Function not registered: 'IRC_Notice'
[20:31:11]    Error: Function not registered: 'IRC_Say'
[20:31:11]    Error: Function not registered: 'DestroyDynamicObject'
[20:31:11]    Error: Function not registered: 'IsValidDynamic3DTextLabel'
[20:31:11]    Error: Function not registered: 'IRC_IsUserOnChannel'
[20:31:11]    Error: Function not registered: 'IRC_KickUser'
[20:31:11]    Error: Function not registered: 'AttachDynamicObjectToVehicle'
[20:31:11]    Error: Function not registered: 'mysql_retrieve_row'
[20:31:11]    Error: Function not registered: 'mysql_fetch_field_row'
[20:31:11]    Error: Function not registered: 'mysql_real_escape_string'
[20:31:11]    Error: Function not registered: 'IsValidDynamicCP'
[20:31:11]    Error: Function not registered: 'GetDynamicObjectPos'
[20:31:11]    Error: Function not registered: 'MoveDynamicObject'
[20:31:12] =================== Server Info: ===================
[20:31:12] Read Commands:   0
[20:31:12] Read PMs:        1
[20:31:12] Kick Bots:       0
[20:31:12] Allow Caps:      1
[20:31:12] Disconnect Msgs: 1
[20:31:12] Anti Ping:	 0
[20:31:12] Max Ping:	 0
[20:31:12] Server Kills:    0
[20:31:12] =================== Finished loading ===================
[20:31:14] .::. Loaded 811 houses .::.
[20:31:14] Number of vehicle models: 110



Re: Functions not registered when they are - Konstantinos - 30.07.2016

As I said it's because of the incorrect way you've used the plugin:

Quote:
Originally Posted by Wyu
Посмотреть сообщение
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.
The server has successfully started and you don't need nativechecker if you have crashdetect installed.


Re: Functions not registered when they are - biker122 - 30.07.2016

So the nativechecker was looking for the natives before the plugins loaded? Now I get it better. Thanks Konstantinos!