Argument type mismatch - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Argument type mismatch (
/showthread.php?tid=653539)
Argument type mismatch -
HoussemKeyCo - 06.05.2018
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);
Re: Argument type mismatch -
jasperschellekens - 06.05.2018
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.
Re: Argument type mismatch -
HoussemKeyCo - 06.05.2018
This is the Channelid.
Код:
new DCC_Channel:Channelid;
Re: Argument type mismatch -
jasperschellekens - 06.05.2018
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.
Re: Argument type mismatch -
HoussemKeyCo - 06.05.2018
Код:
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.