22.03.2014, 12:22
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; }