IRC error - 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: IRC error (
/showthread.php?tid=562892)
IRC error -
aCloudy - 12.02.2015
Hello.
I got an error in this:
the error:
Код HTML:
C:\Program Files\lvcnrr\gamemodes\NewSVR.pwn(13995) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
The command:
PHP код:
IRCCMD:amode(botid, channel[], user[], host[], params[])
{
if (IRC_IsOwner(botid, channel, user))
{
new endid;
new rank;
new string[128];
if(sscanf(params, "ui", endid, rank))
{
format(string,sizeof(string),"USAGE: !amode (Nickname) (Rank)");
Say(channel,string);
return 1;
}
IRC_SetMode(botid, endid, rank[]); ////// THIS IS THE ERROR LINE
}
return 1;
}
Re: IRC error -
asto63 - 12.02.2015
What is the IRC_SetMode function?
Re: IRC error -
aCloudy - 12.02.2015
Quote:
Originally Posted by asto63
What is the IRC_SetMode function?
|
IRC_SetMode is to set the IRC channel member to another mode (voice, or OP or..)
The problem isn't with the "IRC_SetMode", the problem is with endid...
Re: IRC error -
asto63 - 12.02.2015
Yeah, but the problem is the argument 2 of this function. Well, what is this?
Re: IRC error -
aCloudy - 12.02.2015
Quote:
Originally Posted by asto63
Yeah, but the problem is the argument 2 of this function. Well, what is this?
|
Man, I posted the thread to tell me how to fix, Not to tell you how to fix it.