IRC error
#1

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(botidchannel[], user[], host[], params[])
{
    if (
IRC_IsOwner(botidchanneluser))
    {
        new 
endid;
        new 
rank;
        new 
string[128];
        if(
sscanf(params"ui"endidrank))
        {
            
format(string,sizeof(string),"USAGE: !amode (Nickname) (Rank)");
            
Say(channel,string);
            return 
1;
        }
        
IRC_SetMode(botidendidrank[]); ////// THIS IS THE ERROR LINE
    
}
    return 
1;

Reply
#2

What is the IRC_SetMode function?
Reply
#3

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...
Reply
#4

Yeah, but the problem is the argument 2 of this function. Well, what is this?
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)