• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] DISCORD Chat - SERVER Chat
#1
I'l trying to make a Discord - Server chat here's my code:

Code:
public DCC_OnChannelMessage(DCC_Channel:channel, DCC_User:author, const message[]) { new channel_name[100 1]; if(!DCC_GetChannelName(channel, channel_name)) return 0; new user_name[32 1]; if (!DCC_GetUserName(author, user_name)) return 0; new userid1[20]; DCC_GetUserId(author, userid1); if(!strcmp(userid1, CHANNEL_ID)) return 0; ? ? if(channel != BotChannel) return 0; new str[145]; format(str, sizeof str, "{667aca}[Discord] %s:{ffffff} %s", user_name, message); ? ? for(new i = 0; i < MAX_PLAYERS; i) { ? ? SendClientMessage(i, -1, str); } ? ? return 1; ?}

It dosn't work and also don't have errors...
  Reply


Messages In This Thread
DISCORD Chat - SERVER Chat - by Sean17 - 2020-05-16, 08:55 AM
RE: DISCORD Chat - SERVER Chat - by Josh - 2020-05-17, 05:24 AM
RE: DISCORD Chat - SERVER Chat - by Sean17 - 2020-05-17, 05:44 AM
RE: DISCORD Chat - SERVER Chat - by Steven - 2020-05-24, 03:11 PM
RE: DISCORD Chat - SERVER Chat - by XoMoX - 2020-06-23, 07:00 AM