SA-MP Forums

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

Thread Tools Display Modes
Old 28/03/2018, 04:35 PM   #151
Join Date: Jan 2017
Location: Bulgaria
Posts: 19
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   #152
Big Clucker
Mike861's Avatar
Join Date: Feb 2018
Location: Database
Posts: 56
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.
Evoke Gaming founder, join us!

Last edited by Mike861; 02/04/2018 at 07:35 PM.
Mike861 is offline   Reply With Quote
Old 11/04/2018, 09:01 PM   #153
Huge Clucker
DeitY's Avatar
Join Date: Aug 2012
Location: Serbia
Posts: 316
Reputation: 14
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   #154
Big Clucker
RANGER44's Avatar
Join Date: Oct 2016
Location: [SA-MP]
Posts: 80
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   #155
Join Date: Dec 2017
Location: Rahim Yar Khan,Pakistan
Posts: 59
Reputation: 10
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
LegendAbdullah is offline   Reply With Quote
Old 30/04/2018, 08:31 AM   #156
QuaTTrO's Avatar
Join Date: Aug 2009
Posts: 573
Reputation: 75
Default Re: Discord Connector

Awesome plugin, i wish it had more control over message reactions and channel pins. Some admin stuff would be neat too.

Last edited by QuaTTrO; 07/05/2018 at 05:56 PM.
QuaTTrO 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 12:00 PM.

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