SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 23/02/2018, 04:14 PM   #141
89MATT89
Little Clucker
 
89MATT89's Avatar
 
Join Date: Jan 2015
Posts: 26
Reputation: 0
Default Re: Discord Connector

Need help, i have this error in samp_server.exe
Code:
Script[gamemodes/grandlarc.amx]: Run time error 19: "File or function is not found"
__________________
Thao!
-------------------------------------------------------------------------------------
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
HO !
Quote:
C'est moi que tu me cherche
alors casse toi !
ou pas
Ca en fait des quote
89MATT89 is offline   Reply With Quote
Old 04/03/2018, 03:43 PM   #142
maddinat0r
Gangsta
 
maddinat0r's Avatar
 
Join Date: Jun 2010
Location: Germany
Posts: 895
Reputation: 482
Default Re: Discord Connector

I've just released v0.2.2, which contains a bug fix for the well-known crash that happened when editing channel permissions. I also disabled debug logging, as some people experienced performance problems with this.

https://github.com/maddinat0r/samp-d...ses/tag/v0.2.2

EDIT:
Just released v0.2.3 with even more bugfixes:
https://github.com/maddinat0r/samp-d...ses/tag/v0.2.3

Last edited by maddinat0r; 05/03/2018 at 09:02 PM.
maddinat0r is offline   Reply With Quote
Old 10/03/2018, 07:08 AM   #143
OmerKhan
Big Clucker
 
Join Date: Jul 2016
Posts: 83
Reputation: 3
Default Re: Discord Connector

Hi, with this we are able to connect our Samp server to discord like IRC ?
OmerKhan is offline   Reply With Quote
Old 16/03/2018, 08:19 AM   #144
Bridge
Big Clucker
 
Bridge's Avatar
 
Join Date: Dec 2014
Posts: 53
Reputation: 25
Default Re: Discord Connector

no DCC_Connect in newer updates?
I updated the plugin from 0.1 and cant compile
Bridge is offline   Reply With Quote
Old 16/03/2018, 11:44 AM   #145
hotspicytaco
Huge Clucker
 
hotspicytaco's Avatar
 
Join Date: Dec 2011
Location: Taco Bell
Posts: 230
Reputation: 44
Default Re: Discord Connector

Quote:
Originally Posted by Bridge View Post
no DCC_Connect in newer updates?
I updated the plugin from 0.1 and cant compile
No, see the main topic
Quote:
Now you only have to add this line into your server.cfg file and you're ready to go!

pawn Code:
discord_bot_token YOUR_BOT_TOKEN_HERE
__________________
hotspicytaco is offline   Reply With Quote
Old 23/03/2018, 01:17 AM   #146
Rocket16
Little Clucker
 
Join Date: Feb 2016
Posts: 38
Reputation: 9
Default Re: Discord Connector

Would be immense maddinat0r, if you could perhaps create some command documentation so more newbie scripters can understand better how to get the most from this plugin.

It's great though.
Rocket16 is offline   Reply With Quote
Old 23/03/2018, 05:56 AM   #147
LegendAbdullah
Banned
 
Join Date: Dec 2017
Location: Rahim Yar Khan,Pakistan
Posts: 58
Reputation: 10
Default Re: Discord Connector

Quote:
Example code
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
LegendAbdullah is offline   Reply With Quote
Old 23/03/2018, 05:58 AM   #148
LegendAbdullah
Banned
 
Join Date: Dec 2017
Location: Rahim Yar Khan,Pakistan
Posts: 58
Reputation: 10
Default Re: Discord Connector

Where I can find this configuration?
LegendAbdullah is offline   Reply With Quote
Old 24/03/2018, 11:37 AM   #149
LegendAbdullah
Banned
 
Join Date: Dec 2017
Location: Rahim Yar Khan,Pakistan
Posts: 58
Reputation: 10
Angry Re: Discord Connector

Still no one replied about this problem :/
LegendAbdullah is offline   Reply With Quote
Old 25/03/2018, 03:17 PM   #150
kovac
Banned
 
Join Date: Mar 2018
Posts: 182
Reputation: 14
Default Re: Discord Connector

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




log
continously looping this

Quote:
[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 04:31 PM.
kovac 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
[Plugin] Teamspeak Connector maddinat0r Plugin Development 325 08/09/2018 08:04 PM
Route Connector James_Braga Русский/Russian 9 15/05/2015 09:24 AM
[Map] Connector Gas Tellken Maps 4 01/06/2012 04:04 AM
PSU connector help! patchkinson Everything and Nothing 3 20/03/2010 10:24 PM


All times are GMT. The time now is 12:24 AM.


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