SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 29/04/2017, 02:25 PM   #31
Locky_
High-roller
 
Locky_'s Avatar
 
Join Date: Jul 2012
Posts: 1,591
Reputation: 321
Default Re: Discord Connector

Code:
 Loading plugin: discord-connector.so
  Failed (/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by plugins/discord-connector.so))
CentOS 6.9
__________________


Locky_ is offline   Reply With Quote
Old 29/04/2017, 03:09 PM   #32
Dayvison_
High-roller
 
Dayvison_'s Avatar
 
Join Date: Nov 2013
Posts: 1,325
Reputation: 200
Default Re: Discord Connector

CentOS 6 not suported.
Quote:
Q: I get a version GLIBCXX_3.4.15' not found error (or similar). How can I solve this?
A: Update your system. If that still didn't work, you'll need to upgrade your Linux distribution to a version which provides the gcc 4.8 (or higher) compiler. For example, if you're on CentOS 6, which only has gcc 4.4, you'll need to upgrade to CentOS 7.

Last edited by Dayvison_; 29/04/2017 at 05:47 PM.
Dayvison_ is offline   Reply With Quote
Old 29/04/2017, 03:44 PM   #33
ShaharG
Banned
 
Join Date: Apr 2017
Posts: 17
Reputation: 5
Thumbs up Re: Discord Connector

Nice plugin, good job!
please leave a rep by clicking the star.
ShaharG is offline   Reply With Quote
Old 03/05/2017, 06:00 PM   #34
Evocator
Huge Clucker
 
Join Date: Nov 2013
Posts: 479
Reputation: 153
Default Re: Discord Connector

[WARNING] Unknown gateway event 'MESSAGE_REACTION_ADD'

Code:
[20:46:01] [DEBUG] CNetwork::OnWsRead
[20:46:01] [DEBUG] OnWsRead: {
    "d": {
        "channel_id": "308945345448681728",
        "emoji": {
            "id": null,
            "name": "👌"
        },
        "message_id": "304444112932458498",
        "user_id": "245543455933484543"
    },
    "op": 0,
    "s": 17,
    "t": "MESSAGE_REACTION_ADD"
}
[20:46:01] [WARNING] Unknown gateway event 'MESSAGE_REACTION_ADD'
[20:46:01] [DEBUG] UGE res: {
    "d": {
        "channel_id": "308945345448681728",
        "emoji": {
            "id": null,
            "name": "👌"
        },
        "message_id": "304444112932458498",
        "user_id": "245543455933484543"
    },
    "op": 0,
    "s": 17,
    "t": "MESSAGE_REACTION_ADD"
}
[20:46:01] [DEBUG] CNetwork::WsRead
Evocator is offline   Reply With Quote
Old 03/05/2017, 06:18 PM   #35
maddinat0r
Gangsta
 
maddinat0r's Avatar
 
Join Date: Jun 2010
Location: Germany
Posts: 898
Reputation: 481
Default Re: Discord Connector

Quote:
Originally Posted by Ralfie View Post
[WARNING] Unknown gateway event 'MESSAGE_REACTION_ADD'
Ha, that event doesn't seem to be documented in the Discord docs. Thanks for telling!
maddinat0r is offline   Reply With Quote
Old 07/05/2017, 06:39 PM   #36
StackedPizza
Big Clucker
 
StackedPizza's Avatar
 
Join Date: Jun 2015
Posts: 95
Reputation: 2
Default Re: Discord Connector

Sadly but thanks for creating it.
Quote:
[20:11:17] Loading plugin: discord-connector.so
[20:11:17] Failed (libssl.so.10: cannot open shared object file: No such file or directory)

[20:11:20] [debug] Run time error 19: "File or function is not found"
[20:11:20] [debug] DCC_Connect
[20:11:20] [debug] DCC_FindChannelById
[20:11:20] [debug] DCC_SendChannelMessage
[20:11:20] [debug] Run time error 19: "File or function is not found"
[20:11:20] [debug] DCC_Connect
[20:11:20] [debug] DCC_FindChannelById
[20:11:20] [debug] DCC_SendChannelMessage
__________________
StackedPizza is offline   Reply With Quote
Old 16/05/2017, 09:10 PM   #37
Trable
Little Clucker
 
Join Date: Sep 2014
Posts: 7
Reputation: 0
Default Re: Discord Connector

Quote:
Failed (/usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by plugins/discord-connector.so))
Ubuntu 14.04 generic x86_64
Trable is offline   Reply With Quote
Old 19/05/2017, 12:48 AM   #38
ISmokezU
Gangsta
 
Join Date: Aug 2016
Posts: 575
Reputation: 73
Default Re: Discord Connector

I've a problem where i see my bot messages ingame which is really annoying, for example if someone say something in the discord chat it would show like: ([discord: ServerBot]: test) if i say test ingame i will see the bot saying it ingame as well ([discord: Player]: test), Why is this happening, Has it happen to anyone else?

PHP Code:
public DCC_OnChannelMessage(DCC_Channel:channel, const author[], const message[])
{
    new 
tmp144 ];
    
format(tmpsizeof (tmp), "[discord: %s]: {FFFFFF}%s"authormessage);
    
SendClientMessageToAll(-1tmp);
    return 
true;

ISmokezU is online now   Reply With Quote
Old 19/05/2017, 04:20 AM   #39
Infra
Big Clucker
 
Infra's Avatar
 
Join Date: Feb 2014
Location: Germany
Posts: 85
Reputation: 19
Default Re: Discord Connector

Quote:
Originally Posted by ISmokezU View Post
I've a problem where i see my bot messages ingame which is really annoying, for example if someone say something in the discord chat it would show like: ([discord: ServerBot]: test) if i say test ingame i will see the bot saying it ingame as well ([discord: Player]: test), Why is this happening, Has it happen to anyone else?

PHP Code:
public DCC_OnChannelMessage(DCC_Channel:channel, const author[], const message[])
{
    new 
tmp144 ];
    
format(tmpsizeof (tmp), "[discord: %s]: {FFFFFF}%s"authormessage);
    
SendClientMessageToAll(-1tmp);
    return 
true;

Just skip it if it's the bot

pawn Code:
if (!strcmp(author, "BOT-NAME", false)) return true;
Infra is offline   Reply With Quote
Old 19/05/2017, 07:36 PM   #40
ISmokezU
Gangsta
 
Join Date: Aug 2016
Posts: 575
Reputation: 73
Default Re: Discord Connector

Yeah, but as i said when i type something in the discord server while this code is in place it doesn't send the message ingame, idk why it seems that i'm the only one getting this problem.

PHP Code:
   if(!strcmp(author"Server BOT"true)) return true;
    else 
SendClientMessageToAll(-1tmp); 
ISmokezU is online now   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
[Plugin] Teamspeak Connector maddinat0r Plugin Development 325 08/09/2018 07:04 PM
Route Connector James_Braga Русский/Russian 9 15/05/2015 08:24 AM
[Map] Connector Gas Tellken Maps 4 01/06/2012 03:04 AM
PSU connector help! patchkinson Everything and Nothing 3 20/03/2010 09:24 PM


All times are GMT. The time now is 11:32 AM.


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