Search

open.mp forum

RegisterLogin

Discussion

General
Chat
Tech
Life
Art
Programming
open.mp
Development Updates
Questions and Suggestions
SA-MP
General Discussions
Videos and Screenshots
Support
Pawn Scripting
Tutorials
Releases
Plugins
Libraries
Filterscripts
Gamemodes
Maps
Advertisements
Other languages
Spanish/Espa?ol
Programaci?n
Discusi?n GTA SA Multijugador
Mods
Offtopic
Juegos
Portuguese/Portugu?s
Russian/???????
Italian/Italiano
Dutch/Nederlands
German/Deutsch
Romanian/Rom?na
Ex-Yu
Polish/Polski
Og?lne
Serwery
Skryptowanie
Filmiki i zdjecia
Lithuanian/Lietuvi?kas
French/Fran?ais
Hungarian/Magyar
Hindi/Urdu
Turkish
Other
Internal
Team
Hidden
Archived

Library

 Collections Links Members Roles

DISCORD Chat - SERVER Chat

I'l trying to make a Discord - Server chat here's my code:

ID
d6ouivfilegovhg7bfng
author
sean17's avatar

Sean17

@sean17


View profile
Copy link
  Report member
started
May 16, 2020
replies
0
participating
No

scroll to top

powered by storyden

Login
Discussion
Pawn Scripting
DISCORD Chat - SERVER Chat
sean17's avatar

Sean17

@sean17


View profile
Copy link
  Report member
• 6y
Pawn Scripting

DISCORD Chat - SERVER Chat

pawn

I'l trying to make a Discord - Server chat here's my 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...

0 likes0 replies

    Please sign up or log in to reply