Commands
#1

Can some one tell me how to repair this? this is for the IRC, Please help I want it to look like this:




Код:
irccmd_iban(conn, channel[], user[], params[])
{
    if(!ircIsOp(conn,channel,user)) return IrcSay(""IRC_AUTH_MSG"");

        new
                ID = strval(params),tString[128],
                Reason[64],PlayerName[24];

        GetPlayerName(ID,PlayerName,sizeof(PlayerName));

        if(!IsPlayerConnected(ID))
            return IrcSay ("USAGE: !iban [Playerid] [Reason]");

        if(sscanf(params, "dz", ID, Reason))
                return IrcSay ("USAGE: !iban [Playerid] [Reason]");

        format(tString,sizeof(tString),"You have been banned for %s",Reason);
        SendClientMessage(ID, 0xFF0000FF, tString);
        
        
        	new hour,minute,second,month,day,year;
			gettime(hour,minute,second);
			getdate(year,month,day);

        format(tString,sizeof(tString),"%s Banned %s Reason: %s || Ban Made on:%i/%i/%i %i:%i:%i ",user,PlayerName,Reason,month,day,year,hour,minute,second); ");
        IrcSay(tString);

        BanEx(ID, Reason);
        return 1;
          
      
}
PHP код:
C:\Users\Alex\Desktop\Bot\filterscripts\AUirc2.pwn(519) : error 037invalid string (possibly non-terminated string)
C:\Users\Alex\Desktop\Bot\filterscripts\AUirc2.pwn(519) : warning 215expression has no effect
C
:\Users\Alex\Desktop\Bot\filterscripts\AUirc2.pwn(519) : error 001expected token";"but found ")"
C:\Users\Alex\Desktop\Bot\filterscripts\AUirc2.pwn(519) : error 029invalid expressionassumed zero
C
:\Users\Alex\Desktop\Bot\filterscripts\AUirc2.pwn(519) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Reply


Messages In This Thread
Commands - by Alex_Obando - 13.03.2011, 01:07
Re: Commands - by MP2 - 13.03.2011, 01:09
Respuesta: Commands - by Alex_Obando - 13.03.2011, 01:13
Re: Commands - by Tommy_Mandaz - 13.03.2011, 01:33
Respuesta: Commands - by Alex_Obando - 13.03.2011, 01:37
Re: Commands - by Tommy_Mandaz - 13.03.2011, 01:38
Respuesta: Commands - by Alex_Obando - 13.03.2011, 01:40
Re: Commands - by admantis - 13.03.2011, 01:45
Re: Commands - by mprofitt - 13.03.2011, 01:45
Re: Commands - by admantis - 13.03.2011, 01:48

Forum Jump:


Users browsing this thread: 1 Guest(s)