Discord plugin help
#1

NOTE: i posted this in Discord Plugin thread but didn't get the help i needed.
Someone told me to remove 'const' from
PHP Code:
const message[] 
but i get this error
Code:
error 025: function heading differs from prototype
[Below is what i posted in the Discord plugin thread]

Hey..

PHP Code:
public DCC_OnChannelMessage(DCC_Channel:channelDCC_User:author, const message[])
{
    new 
channel_name[32], test[128], str[128];
    
DCC_GetChannelName(channelchannel_name);
    new 
user_name[32 1];
    
DCC_GetUserName(authoruser_name);
    if(!
DCC_GetChannelName(channelchannel_name))
    {
        if(!
strcmp(message"!say"false2))
        {
            if(
sscanf(message"s[128]"test))
                return 
0;
                
            
format(strsizeof(str), "%s"test);
            
DCC_SendChannelMessage(Echo, str);
            return 
1;
        }
    }
    return 
1;

Code:
error 035: argument type mismatch (argument 1)
Line for error ^:

PHP Code:
if(sscanf(message"s[128]"test)) 
Tried my best to figure it, any help please?
Reply


Messages In This Thread
Discord plugin help - by UberEverywhere - 27.10.2017, 08:21
Re: Discord plugin help - by Sew_Sumi - 27.10.2017, 08:32
Re: Discord plugin help - by UberEverywhere - 27.10.2017, 08:42
Re: Discord plugin help - by Sew_Sumi - 27.10.2017, 09:53
Re: Discord plugin help - by UberEverywhere - 27.10.2017, 11:58
Re: Discord plugin help - by Quantella - 27.10.2017, 14:29
Re: Discord plugin help - by Sew_Sumi - 27.10.2017, 14:40
Re: Discord plugin help - by zMason - 27.10.2017, 15:37
Re: Discord plugin help - by Sew_Sumi - 27.10.2017, 15:50
Re: Discord plugin help - by zMason - 27.10.2017, 18:36

Forum Jump:


Users browsing this thread: 1 Guest(s)