Argument type mismatch
#1

Hello everyone.
I'm trying to use Discord Connector, I've copied the code in the example, but I'm getting this error:
Код:
error 035: argument type mismatch (argument 1)
This is the lines of code:
Код:
Channelid = DCC_FindChannelById(CHANNEL_ID);
Reply
#2

Well what is Channelid? Is it a string? or is it meant to be an integer?
You provide us with very little information. Please add more relevant code.
Reply
#3

This is the Channelid.
Код:
new DCC_Channel:Channelid;
Reply
#4

Quote:
Originally Posted by HoussemKeyCo
Посмотреть сообщение
This is the Channelid.
Код:
new DCC_Channel:Channelid;
Again i need more code.
We can't guess what you are trying to do here.
If you are using a tutorial or script post the link of it.
Reply
#5

Код:
public OnFilterScriptExit()
{
	print("--------------------------");
	print("* Discord Bot has been unloaded! *");
	print("* Author: HoussemKeyCo *");
	print("* Version: 0.0.1 *");
	print("--------------------------");
	if (_:Channelid == 0) {
		Channelid = DCC_FindChannelById(CHANNEL_ID);
	}
	DCC_SendChannelMessage(Channelid, "I'm unloaded!");
	return 1;
}
This is where its happening.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)