help me!!
#1

pawn Код:
CMD:report(playerid,params[])
{
    new id, reported;
    if(isnull(params)) return
    SendClientMessage(playerid, LIGHTBLUE2, "Usage: /report [PlayerID] [Reason]") &&
    SendClientMessage(playerid, orange, "Attention: Not report anyone without Reason!");
   
        if(IsPlayerConnected(reported)) && reported != INVALID_PLAYER_ID)
        {
            return SendClientMessage(playerid,red,"ERROR: You cannot report this Administrator");
            if(playerid == reported)
            return SendClientMessage(playerid,red,"ERROR: You Cannot report Yourself");
            if(strlen(params) > 7)
            {
                new reportedname[MAX_PLAYER_NAME], reporter[MAX_PLAYER_NAME], str[128];
                new hour, minute, second;
                gettime(hour,minute, second);
                GetPlayerName(reported, reportedname, sizeof(reportedname));
                GetPlayerName(playerid, reporter, sizeof(reporter));
                format(str, sizeof(str), "REPORT: %s (Id:%d) Reported %s(Id:%d) Reason: %s |Time: %d : %d : %d|", reporter,playerid,reportedname,reported,params[strlen(tmp)+1], hour,minute,second);
                MessageToAdmins(COLOR_WHITE,str);
                SaveIn("ReportLog",str);
                format(str, sizeof(str), "(%d : %d : %d): %s(Id:%d) Reported %s(Id:%d) Reason: %s", hour,minute,second, reporter,playerid, reportedname, reported, params[strlen(tmp)+1]);
                return SendClientMessage(playerid,yellow, "|- Your report has been sent to Online Administrators and saved in File! -|");
            }

        }
    return 1;
}
pawn Код:
C:\Users\carlo\Desktop\SA-MP Server\trucking\filterscripts\WindAdmin.pwn(595) : warning 217: loose indentation
C:\Users\carlo\Desktop\SA-MP Server\trucking\filterscripts\WindAdmin.pwn(595) : error 029: invalid expression, assumed zero
C:\Users\carlo\Desktop\SA-MP Server\trucking\filterscripts\WindAdmin.pwn(595) : warning 215: expression has no effect
C:\Users\carlo\Desktop\SA-MP Server\trucking\filterscripts\WindAdmin.pwn(595) : error 001: expected token: ";", but found ")"
C:\Users\carlo\Desktop\SA-MP Server\trucking\filterscripts\WindAdmin.pwn(595) : error 029: invalid expression, assumed zero
C:\Users\carlo\Desktop\SA-MP Server\trucking\filterscripts\WindAdmin.pwn(595) : 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.
pawn Код:
if(IsPlayerConnected(reported)) && reported != INVALID_PLAYER_ID)
Reply
#2

Код:
if(IsPlayerConnected(reported) && reported != INVALID_PLAYER_ID)
Reply
#3

Tnx rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)