SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/11/2019, 04:36 PM   #1
DomagojSellug
Huge Clucker
 
DomagojSellug's Avatar
 
Join Date: Sep 2016
Location: Croatia
Posts: 239
Reputation: 22
Default Discord Connector "function not registered"

Code:
[17:34:56]    Error: Function not registered: 'DCC_FindChannelById'
[17:34:56]    Error: Function not registered: 'DCC_SendChannelMessage'
[17:34:56]    Error: Function not registered: 'DCC_IsUserBot'
[17:34:56]    Error: Function not registered: 'DCC_GetUserName'
I get these four errors and my server is not starting because of them.

I have set up everything and it was working perfectly on Windows as it was supposed to, but when I uploaded it to FTP server with the Linux includes and plugins it returns these four errors in the logs. Why is this happening? It's working fine on Windows but not on the Linux server.

Discord Connector version: 0.2.4
__________________

San Andreas Multiplayer server based off Counter Strike: Global Offensive.

Join us today!

DISCORD: discord.sa-go.info
WEBSITE: http://sa-go.info
SERVER IP: samp.sa-go.info
DomagojSellug is offline   Reply With Quote
Old 14/11/2019, 05:00 PM   #2
DomagojSellug
Huge Clucker
 
DomagojSellug's Avatar
 
Join Date: Sep 2016
Location: Croatia
Posts: 239
Reputation: 22
Default Re: Discord Connector "function not registered"

I just tried 0.3 too and it's still not working these four functions are not registered for some reason and they resist to work at all costs. I am unbelievably mad right now because I've spent a fair amount of my time figuring out the Discord Connector script only for it not to work because of dumb Linux conversions.
__________________

San Andreas Multiplayer server based off Counter Strike: Global Offensive.

Join us today!

DISCORD: discord.sa-go.info
WEBSITE: http://sa-go.info
SERVER IP: samp.sa-go.info
DomagojSellug is offline   Reply With Quote
Old 14/11/2019, 05:05 PM   #3
DomagojSellug
Huge Clucker
 
DomagojSellug's Avatar
 
Join Date: Sep 2016
Location: Croatia
Posts: 239
Reputation: 22
Default Re: Discord Connector "function not registered"

Code:
[18:06:43]   Loaded.
[18:06:43]  Loading plugin: discord-connector.so
[18:06:43]   Failed (libssl.so.1.0.0: cannot open shared object file: No such file or directory)
[18:06:43]  Loading plugin: nativechecker.so
[18:06:43]   Loaded.
[18:06:43]  Loaded 3 plugins.
This is what's shown when loading plugins.


EDIT:
When running 0.2.4 with the Debian version plugins says libssl.so.1.1 is missing and it returns same errors. What's causing this and how can I fix it?
__________________

San Andreas Multiplayer server based off Counter Strike: Global Offensive.

Join us today!

DISCORD: discord.sa-go.info
WEBSITE: http://sa-go.info
SERVER IP: samp.sa-go.info
DomagojSellug is offline   Reply With Quote
Old 15/11/2019, 06:04 AM   #4
Jstylezzz
High-roller
 
Jstylezzz's Avatar
 
Join Date: Sep 2011
Location: Netherlands
Posts: 1,859
Reputation: 1571
Default Re: Discord Connector "function not registered"

Have you tried.. installing libssl on your server? You can only do this yourself if you have root (or elevated sudo) access to the server. If you're renting SA-MP server space from a hosting company, you'll need to ask them to install the correct libssl version.

It kind of depends on what Debian version you have exactly, but here's what I found.

Just like some Windows applications need .NET Framework x.x.x installed, Linux programs have dependencies too
Jstylezzz is offline   Reply With Quote
Old 15/11/2019, 11:21 AM   #5
DomagojSellug
Huge Clucker
 
DomagojSellug's Avatar
 
Join Date: Sep 2016
Location: Croatia
Posts: 239
Reputation: 22
Default Re: Discord Connector "function not registered"

Quote:
Originally Posted by Jstylezzz View Post
Have you tried.. installing libssl on your server? You can only do this yourself if you have root (or elevated sudo) access to the server. If you're renting SA-MP server space from a hosting company, you'll need to ask them to install the correct libssl version.

It kind of depends on what Debian version you have exactly, but here's what I found.

Just like some Windows applications need .NET Framework x.x.x installed, Linux programs have dependencies too
Alright, I'll tell my friend as he's setting up the Linux server, I don't have access to it :P
__________________

San Andreas Multiplayer server based off Counter Strike: Global Offensive.

Join us today!

DISCORD: discord.sa-go.info
WEBSITE: http://sa-go.info
SERVER IP: samp.sa-go.info
DomagojSellug is offline   Reply With Quote
Old 15/11/2019, 03:07 PM   #6
x97d
Little Clucker
 
x97d's Avatar
 
Join Date: Sep 2019
Posts: 4
Reputation: 0
Default Re: Discord Connector "function not registered"

Depends on your OS version, Debian and CentOS dont have libssl-1.0.0.

I attempted to fix this but gave up and instead ran Ubuntu 16.04 which is giving me no issues with discord-connector.
x97d is offline   Reply With Quote
Old 15/11/2019, 03:23 PM   #7
Jstylezzz
High-roller
 
Jstylezzz's Avatar
 
Join Date: Sep 2011
Location: Netherlands
Posts: 1,859
Reputation: 1571
Default Re: Discord Connector "function not registered"

Depends on if the source is public/up to date and if you're up for some tinkering; But I've had a few occasions where I compiled the plugin source on the target operating system (on a virtual machine, to keep the production server clean), and was able to get away with both my OS of choice and the plugin running
Jstylezzz is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Error: Function is not registered "mysql_connect" "mysql_close" iJohann3s Scripting Help 5 26/06/2016 10:28 AM
Multiple "Error: Function not registered" errors Peavy Server Support 10 18/05/2016 07:09 PM
Windows To Linux "Error: Function Not Registered" Vythrin Scripting Help 0 19/08/2013 06:13 PM


All times are GMT. The time now is 03:17 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.