13.03.2011, 01:07
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 037: invalid string (possibly non-terminated string)
C:\Users\Alex\Desktop\Bot\filterscripts\AUirc2.pwn(519) : warning 215: expression has no effect
C:\Users\Alex\Desktop\Bot\filterscripts\AUirc2.pwn(519) : error 001: expected token: ";", but found ")"
C:\Users\Alex\Desktop\Bot\filterscripts\AUirc2.pwn(519) : error 029: invalid expression, assumed zero
C:\Users\Alex\Desktop\Bot\filterscripts\AUirc2.pwn(519) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.