SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 18/08/2019, 09:23 PM   #31
PaulCrouseVS
Big Clucker
 
PaulCrouseVS's Avatar
 
Join Date: Jan 2018
Location: England
Posts: 78
Reputation: 10
Default Re: Discord Chat - Real time chatting ( Discord + In Game)

How do I get the id of a channel?
PaulCrouseVS is offline   Reply With Quote
Old 19/08/2019, 08:44 AM   #32
kostasGR
Little Clucker
 
Join Date: Jun 2016
Location: Greece
Posts: 1
Reputation: 0
Default Re: Discord Chat - Real time chatting ( Discord + In Game)

Quote:
Originally Posted by PaulCrouseVS View Post
How do I get the id of a channel?
User settings>Appearance>enable Developer Mode>Right click on the chat/channel and Copy ID.
kostasGR is offline   Reply With Quote
Old 19/08/2019, 11:24 AM   #33
sMb
Little Clucker
 
Join Date: Jun 2018
Posts: 11
Reputation: 0
Default Re: Discord Chat - Real time chatting ( Discord + In Game)

You're right, sorry for having demanded so much.
Anyway,
i now I'm trying to log every command typed by the user in a specific channel
and I used this code:
Code:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{

new string[120];

format(string,sizeof(string),"%s(%d) Typed %s",playerid,cmdtext);

 * *SendDC(CHANNEL_ID);

 * *return 1;
but dont work
why

Last edited by sMb; 19/08/2019 at 12:16 PM.
sMb is offline   Reply With Quote
Old 04/09/2019, 12:05 PM   #34
ThePosition
Little Clucker
 
Join Date: Jun 2019
Posts: 1
Reputation: 0
Default Re: Discord Chat - Real time chatting ( Discord + In Game)

Nice job ! but I didn't understand how to create a admin command :P
can someone give an example?
ThePosition is offline   Reply With Quote
Old 24/09/2019, 07:32 AM   #35
nitroscar
Little Clucker
 
Join Date: Sep 2019
Posts: 3
Reputation: 0
Default Re: Discord Chat - Real time chatting ( Discord + In Game)

C:\Users\auges\Downloads\Madness Gamemode\filterscripts\Discord_Chat.pwn(17) : warning 235: public function lacks forward declaration (symbol "DCC_OnChannelMessage")

Works great

The only thing i cant figure out is why discord chat doesnt show in game
nitroscar is offline   Reply With Quote
Old 25/09/2019, 08:38 PM   #36
Major
Little Clucker
 
Join Date: Jun 2019
Posts: 14
Reputation: 0
Default Re: Discord Chat - Real time chatting ( Discord + In Game)

Link do plugin não está funcionando
Major is offline   Reply With Quote
Old 16/10/2019, 09:32 PM   #37
Chaprnks
Gangsta
 
Chaprnks's Avatar
 
Join Date: Sep 2007
Location: Soviet America
Posts: 576
Reputation: 69
Default Re: Discord Chat - Real time chatting ( Discord + In Game)

Quote:
Originally Posted by nitroscar View Post
C:\Users\auges\Downloads\Madness Gamemode\filterscripts\Discord_Chat.pwn(17) : warning 235: public function lacks forward declaration (symbol "DCC_OnChannelMessage")

Works great

The only thing i cant figure out is why discord chat doesnt show in game
This filterscript is made for discord-connector 0.2.4; its not compatible with 0.3

Quote:
callback DCC_OnChannelMessage has been removed; use DCC_OnMessageCreate as a replacement
__________________
Chaprnks 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
[Ajuda] chama no discord Mackanor PortuguÍs/Portuguese 1 23/04/2018 02:41 AM
Discord Help baki Scripting Help 4 09/08/2017 11:28 PM
Discord for SA-MP? Lorenc_ Plugin Development 83 05/02/2017 08:01 PM


All times are GMT. The time now is 07:30 AM.


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