Report command not working
#1

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;
}
Reply
#2

Код:
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;
}
One line was not lined up.
Reply
#3

Thanks haven't noticed it
Reply
#4

Not a problem
Reply
#5

Weird it's not working even when fixed....
Reply
#6

Dont the problem then sorry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)