/report bug
#1

Why does it keep saying ''USAGE: /report [playerid/PartOfName] (Reason)" when I enter the command, anyone got a fix?

Код:
dcmd_report(playerid,params[])
{
	new string[128];
	new ID;
	new cmdreason[100];
	if(sscanf(params,"us[100]",ID,cmdreason))
	{
	    SendClientMessage(playerid,COLOR_GRAD1,"USAGE: /report [playerid/PartOfName] (Reason)");
	    return 1;
	}
	if(!IsPlayerConnected(ID))
	{
		format(string,sizeof(string),"That player is not conneted ");
		SendClientMessage(playerid,COLOR_GRAD1,string);
		return 1;
	}
	format(string,sizeof(string),"Your report has been sent!");
	SendClientMessage(playerid,COLOR_YELLOW,string);

	format(string,sizeof(string),"Report: %s(%d) reported: %s(%d): %s.",PlayerName(playerid),playerid,PlayerName(ID),ID, cmdreason);
	ABroadCast(RED, string, 1);
	return 1;
}
Reply


Messages In This Thread
/report bug - by whando - 04.08.2013, 22:49
Re: /report bug - by FiReAlEx - 04.08.2013, 22:54
Re: /report bug - by Isolated - 04.08.2013, 22:56
Re: /report bug - by whando - 04.08.2013, 23:10

Forum Jump:


Users browsing this thread: 1 Guest(s)