11.08.2018, 02:56
I think this is what you're wanting?
You should also check your code more thoroughly as you mix 'targetid' with 'playerid' in the wrong places.
pawn Код:
if(targetid == playerid)
{
format(fstr2, sizeof(fstr2), "{FFFFFF}[JAIL RELEASE]: {FFD700}%s(%d) {FFFFFF}has been released from {33FF33}Jail{FFFFFF}. Bail paid ({33FF33}$%d{FFFFFF})!", pName,playerid, MoneyForBail[playerid]);
SendClientMessageToAll(COLOR_DODGERBLUE, fstr2);
}
else
{
format(string,sizeof(string),"{3DB9E7}[Confinement Payment]: {FFFFFF}Player {3DB9E7}%s(%d) {FFFFFF}has PAID the bail of the jailed to {3DB9E7}%s(%d). {FFFFFF}Bail Was: {36FF00}$%d{FFFFFF}!",pName,playerid,tName,targetid,MoneyForBail[playerid]);
SendClientMessageToAll(COLOR_DODGERBLUE, string);
}
pawn Код:
if(sscanf(params, "u", playerid)) return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}Error: /Bail <playerid>"); //should be targetid, not playerid