02.07.2013, 14:17
Hello, I've been having some trouble with this command on my server can you help me, I can't seem to find error. I keep getting Unknown command error.
Код:
CMD:report(playerid,params[]) // CMD for report to admin { if(PlayerInfo[playerid][pReportMuted] == 1) { SendClientMessage(playerid, COLOR_RED, "You are currently muted from using /report"); return 0; } else { new sendername[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; if(isnull(params)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /report [text]"); format(string, sizeof(string), "Report From %s: %s", sendername, params); ABroadCast(COLOR_RED,string,1); } return 1; }