[HELP] /report
#1

i can't found the problem ... that's relay strange the command don't work properly ... any one know where the problem come from ?
Код:
CMD:report(playerid, params[])
{
	new reason[50], giveplayerid, sendername[24], str3[128], PlayerName[24], file[128];
	if(sscanf(params, "us[32]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /report [playerid] [reason]");
	if(!IsPlayerConnected(giveplayerid)) return 1;
	GetPlayerName(playerid, sendername, 20);
	GetPlayerName(giveplayerid, PlayerName, sizeof(PlayerName));
	format(file, 128, USER_FILE, PlayerName);
	format(str3, 128, "%s reported by: %s Reason: %s",PlayerName, sendername, reason);
	SendClientMessage(playerid, 0xFFFFFFFF, "thanks for reporting");
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			if(GetAdminLevel(playerid) >= 1|| IsPlayerAdmin(playerid))
			SendClientMessage(i, COLOR_RED, str3);
		}
	}
	return 0;
}
Reply


Messages In This Thread
[HELP] /report - by Amine_Mejrhirrou - 22.06.2011, 21:23
Re: [HELP] /report - by Tachibana - 22.06.2011, 21:40
Re : [HELP] /report - by Amine_Mejrhirrou - 22.06.2011, 21:44
Re: Re : [HELP] /report - by Tachibana - 22.06.2011, 21:47
Re : [HELP] /report - by Amine_Mejrhirrou - 22.06.2011, 21:49
Re: Re : [HELP] /report - by Tachibana - 22.06.2011, 21:51
Re : [HELP] /report - by Amine_Mejrhirrou - 22.06.2011, 22:15
Re: Re : [HELP] /report - by Tachibana - 22.06.2011, 22:15

Forum Jump:


Users browsing this thread: 2 Guest(s)