Server Crash
#9

i can't use the crash detect plugin i don't know but i can't get it's output and yeah the debug it's too much on the log and complain cmd
Код:
CMD:complain(playerid, params[])
{
        new TargetID,complain[20];
        new playername[MAX_PLAYER_NAME];
        new targetname[MAX_PLAYER_NAME];
        if(sscanf(params, "us", TargetID, complain)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /complain [id] [complain]");
        if(TargetID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "* Player Is Not Connected.");
        if(strlen(complain) < 5) return SendClientMessage(playerid, COLOR_RED, "* Enter Long Reason.");
        new string [128];
        SCM(playerid, COLOR_WHITE, "You Complaint Has Been Sent Successfully.");
        format(string,sizeof(string),"Complaint: %s", complain);
		SCM(playerid, COLOR_CYAN, string);
        for (new i = 0; i < MAX_PLAYERS; i++)
        {
		   if(IsPlayerConnected(i))
            {
                if(pInfo[i][Adminlevel] > 0)
                {
                new str[128];
                GetPlayerName(playerid,playername,24);
                GetPlayerName(TargetID,targetname,24);
                format(str,sizeof(str),"*** New Complaint Received. Player: %s (%d) Has Reported Player: %s (%d). - COMPLAINT: %s", playername, playerid, targetname, TargetID, complain);
				SCM(i, COLOR_HOTPINK, str);
				print(str);

				return 1;
                }

            }

		}
        return 1;
}
Reply


Messages In This Thread
Server Crash - by AroseKhanNiazi - 21.03.2014, 14:45
Re: Server Crash - by Carac - 21.03.2014, 16:56
Re: Server Crash - by AroseKhanNiazi - 21.03.2014, 17:17
Re: Server Crash - by Lidor124 - 21.03.2014, 17:22
Re: Server Crash - by Carac - 21.03.2014, 17:22
Re: Server Crash - by AroseKhanNiazi - 22.03.2014, 12:00
Re: Server Crash - by Equuuuin0X - 22.03.2014, 12:02
Re: Server Crash - by Konstantinos - 22.03.2014, 12:07
Re: Server Crash - by AroseKhanNiazi - 22.03.2014, 12:22
Re: Server Crash - by Konstantinos - 22.03.2014, 12:27

Forum Jump:


Users browsing this thread: 2 Guest(s)