SA-MP Forums

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

Thread Tools Display Modes
Old 25/03/2018, 02:17 PM   #151
Huge Clucker
kovac's Avatar
Join Date: Mar 2018
Posts: 290
Reputation: 3
Default Re: Discord Connector

[16:12:29] Loading plugin:
[16:12:49] >> plugin.dc-connector: timeout while initializing data.
[16:12:49] Failed.

continously looping this

[03/25/18 16:44:37] [ERROR] Discord terminated websocket connection; reason: Authentication failed. (4004)
[03/25/18 16:44:37] [INFO] websocket gateway connection terminated, attempting reconnect...
[03/25/18 16:44:37] [WARNING] Error while sending WS close frame: Operation canceled (125)
EDIT: Solved. My token wasn't right

Last edited by kovac; 25/03/2018 at 03:31 PM.
kovac is offline   Reply With Quote
Old 28/03/2018, 04:35 PM   #152
Join Date: Jan 2017
Location: Bulgaria
Posts: 20
Reputation: 6
Default Re: Discord Connector

I've been waiting on a thing like that for a long time, good job, and thanks!
AlejandroOrtega is offline   Reply With Quote
Old 02/04/2018, 05:54 PM   #153
Little Clucker
Join Date: Feb 2018
Location: Mighty Serbia
Posts: 45
Reputation: 1
Default Re: Discord Connector

Vault.pwn(17588) : error 017: undefined symbol "msg"
Vault.pwn(17593) : error 021: symbol already defined: "name"
Vault.pwn(17593) : symbol is assigned a value that is never used: "name"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2016, ITB CompuPhase

2 Errors.
I've tried the example from the thread, im getting these errors.What to do?
Edit: Fixed.
Working on Terminal Gaming Freeroam/Roleplay project.Hiring staff and testers!

Last edited by Mike861; 02/04/2018 at 07:35 PM.
Mike861 is offline   Reply With Quote
Old 11/04/2018, 09:01 PM   #154
Huge Clucker
DeitY's Avatar
Join Date: Aug 2012
Location: Serbia
Posts: 311
Reputation: 9
Default Re: Discord Connector

There is no libssl 1.1.0 for 64 bit?

I've got this, but its x86. Whenever i start server it shows ->
[22:49:00] Loading plugin:
[22:49:00] Failed ( wrong ELF class: ELFCLASS64)

I'm using debian stretch 64 bit.
Serbian RolePlay Server! 7 Years Community so far and going~

DeitY is offline   Reply With Quote
Old 12/04/2018, 08:56 PM   #155
Big Clucker
RANGER44's Avatar
Join Date: Oct 2016
Location: [SA-MP]
Posts: 75
Reputation: 20
Default Re: Discord Connector

I am a experienced member of Discord but never tried to know something like this, Good Job, Feel free to ask me by PM regarding discord error.
RANGER44 is offline   Reply With Quote
Old 25/04/2018, 10:15 AM   #156
Big Clucker
LegendAbdullah's Avatar
Join Date: Dec 2017
Location: Rahim Yar Khan,Pakistan
Posts: 57
Reputation: 5
Default Re: Discord Connector

Example code
new DCC_Channel:g_WelcomeChannelId;

public OnPlayerSpawn(playerid)
new name[MAX_PLAYER_NAME + 1];
GetPlayerName(playerid, name, sizeof name);

if (_:g_WelcomeChannelId == 0)
g_WelcomeChannelId = DCC_FindChannelById("388423556721672192"); // Discord channel ID

new str[128];
format(str, sizeof str, "Player %s joined the server.", name);
DCC_SendChannelMessage(g_WelcomeChannelId, msg);
return 1;

public DCC_OnChannelMessage(DCC_Channel:channel, DCC_User:author, const message[])
new channel_name[100 + 1];
if(!DCC_GetChannelName(channel, channel_name))
return 0; // invalid channel

new user_name[32 + 1];
if (!DCC_GetUserName(author, user_name))
return 0; // invalid user

new str[145];
format(str, sizeof str, "[Discord/%s] %s: %s", channel_name, user_name, message);
SendClientMessageToAll(-1, str);
return 1;
What to do with it
My Server
LegendAbdullah is offline   Reply With Quote

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 322 09/02/2018 11:53 AM
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 04:39 AM.

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