How to
#6

I think this is what you're wanting?

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);
}
You should also check your code more thoroughly as you mix 'targetid' with 'playerid' in the wrong places.

pawn Код:
if(sscanf(params, "u", playerid)) return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}Error: /Bail <playerid>"); //should be targetid, not playerid
Reply


Messages In This Thread
How to - by Thanks - 11.08.2018, 01:12
Re: How to - by Dangjai - 11.08.2018, 01:16
Re: How to - by Thanks - 11.08.2018, 01:17
Re: How to - by Dangjai - 11.08.2018, 01:19
Re: How to - by Thanks - 11.08.2018, 01:24
Re: How to - by TVDude - 11.08.2018, 02:56
Re: How to - by Thanks - 11.08.2018, 13:22
Re: How to - by Thanks - 11.08.2018, 19:42
Re: How to - by KinderClans - 11.08.2018, 19:44
Re: How to - by Thanks - 11.08.2018, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)