/fine doesnt show reason
#1

Why doesnt it print out the reason when i fine someone?
Код:
COMMAND:fine(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 8)
	{
 		SendClientMessage(playerid, COLOR_GREY, "You must be a level 8 admin to do this.");
	}
	else
	{
	    new targetid;
 		new amount;
 		new playername[30];
 		new targetname[30];
 		new reason[128];
 		new result[200];
 		GetPlayerName(targetid, targetname, sizeof(targetname));
 		GetPlayerName(playerid, playername, sizeof(playername));
 		if(sscanf(params, "uis", targetid, amount)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /fine [ID] [AMOUNT] [REASON]");
 		if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin]) return SendClientMessage(playerid, COLOR_GREY, "That players admin level is higher than yours.");
 		if(amount < 1) return SendClientMessage(playerid, COLOR_GREY, "The amount to fine can't be less than 1.");
 		GivePlayerMoney(targetid, -amount);
 		format(result, sizeof(result),"%s was fined $%i by %s, reason: {F5712A}%s", targetname, amount, playername, reason);
 		SendClientMessageToAll(COLOR_RED, result);
	}
	return 1;
}
Reply


Messages In This Thread
/fine doesnt show reason - by Sellize - 30.06.2013, 13:44
Re: /fine doesnt show reason - by -=Dar[K]Lord=- - 30.06.2013, 13:49
Re: /fine doesnt show reason - by Cjgogo - 30.06.2013, 13:49
Re: /fine doesnt show reason - by M3HR4N - 30.06.2013, 13:57
Re: /fine doesnt show reason - by Income - 01.07.2013, 00:46

Forum Jump:


Users browsing this thread: 1 Guest(s)