public SendDC(channel[], const fmat[], va_args<>)
{
new
str[145];
va_format(str, sizeof (str), fmat, va_start<2>); //23
BotChannel = DCC_FindChannelById(channel);
return DCC_SendChannelMessage(BotChannel, str);
}
public SendDCByName(channel[], const fmat[], va_args<>)
{
new
str[145];
va_format(str, sizeof (str), fmat, va_start<2>); //31
BotChannel = DCC_FindChannelByName(channel);
return DCC_SendChannelMessage(BotChannel, str);
}
|
You can't modify constant variable (string, Float, intenger or w/e). Remove const keyword on both function header.
|
function heading differs from prototype (Line 19) function heading differs from prototype (Line 27)
public SendDC(channel[], fmat[], va_args<>) //19
{
new
str[145];
va_format(str, sizeof (str), fmat, va_start<2>);
BotChannel = DCC_FindChannelById(channel);
return DCC_SendChannelMessage(BotChannel, str);
}
public SendDCByName(channel[], fmat[], va_args<>)//27
{
new
str[145];
va_format(str, sizeof (str), fmat, va_start<2>);
BotChannel = DCC_FindChannelByName(channel);
return DCC_SendChannelMessage(BotChannel, str);
}
|
You have to edit the forwarded prototype when you are editing the prototype of the public function
|
|
Ohh it fixed... sorry, i forgot to remove "const" at "forward", i just remove "const" at public lol
|