SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 08/08/2017, 11:28 AM   #1
baki
Little Clucker
 
Join Date: Jun 2011
Location: Serbia and Monterego
Posts: 32
Reputation: 0
Default Help with Discord Connector

I have this error anybody help me?
PHP Code:
C:\Users\Baki\Desktop\developer\gg\grandlar2.pwn(304) : error 017undefined symbol "msg" 
PHP Code:
    }
        new 
name[MAX_PLAYER_NAME 1];
        
GetPlayerName(playeridnamesizeof name);
        if (
_:g_WelcomeChannelId == 0)
        
g_WelcomeChannelId DCC_FindChannelById("388423556721672192"); // Discord channel ID

        
new str2[128];
        
format(str2sizeof str"Player %s joined the server."name);
        
DCC_SendChannelMessage(g_WelcomeChannelIdmsg);
        return 
1;

__________________
I HATE HACKERS!!
baki is offline   Reply With Quote
Old 08/08/2017, 11:47 AM   #2
DarkZero
Banned
 
Join Date: Apr 2011
Location: Germany
Posts: 59
Reputation: 8
Default Re: Help with Discord Connector

Replace "msg" with "str2".

Explaination: You are formatting a message in a string called "str2", but you are trying to call the formatted message in "msg", that actually doesn't exist. So you have to call the string of "str2" instead.
DarkZero is offline   Reply With Quote
Old 08/08/2017, 11:53 AM   #3
baki
Little Clucker
 
Join Date: Jun 2011
Location: Serbia and Monterego
Posts: 32
Reputation: 0
Default Re: Help with Discord Connector

Quote:
Originally Posted by DarkZero View Post
Replace "msg" with "str2".

Explaination: You are formatting a message in a string called "str2", but you are trying to call the formatted message in "msg", that actually doesn't exist. So you have to call the string of "str2" instead.
Thank you sir you saved me from a headache! rep+
__________________
I HATE HACKERS!!
baki is offline   Reply With Quote
Old 25/06/2018, 12:03 PM   #4
ZainM
Little Clucker
 
Join Date: Jun 2015
Posts: 7
Reputation: 0
Default Re: Help with Discord Connector

I have this error, I tried fixing this many times but it just didn't fix.

I am using the NGG Official Released Script and I upgraded the Discord Connector and then it gives me this error when compiling the Gamemode.


./includes/mysql.pwn(1360) : error 017: undefined symbol "SendDiscordMessage"
./includes/mysql.pwn(1362) : error 017: undefined symbol "SendDiscordMessage"
./includes/admin/admin.pwn(5 : error 017: undefined symbol "SendDiscordMessage"
./includes/admin/admin.pwn(62) : error 017: undefined symbol "SendDiscordMessage"
./includes/admin/admin.pwn(1922) : error 017: undefined symbol "SendDiscordMessage"
./includes/admin/admin.pwn(1950) : error 017: undefined symbol "SendDiscordMessage"
C:\Users\Administrator\Desktop\SAMP\samp037_svr_R2-1-1_win32\gamemodes\NGRP.pwn(379) : warning 203: symbol is never used: "g_AdminChannelId"
C:\Users\Administrator\Desktop\SAMP\samp037_svr_R2-1-1_win32\gamemodes\NGRP.pwn(379) : warning 203: symbol is never used: "g_AdminWarningsChannelId"
C:\Users\Administrator\Desktop\SAMP\samp037_svr_R2-1-1_win32\gamemodes\NGRP.pwn(379) : warning 203: symbol is never used: "g_HeadAdminChannelId"
C:\Users\Administrator\Desktop\SAMP\samp037_svr_R2-1-1_win32\gamemodes\NGRP.pwn(379) : warning 203: symbol is never used: "g_ServerErrorsChannelId"







someone help me please.
ZainM 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 07:04 PM
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 11:50 AM.


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