23.10.2018, 18:31
Looking for someone who can teach me how to calculate -25% of the hit price (bounty). I know how to do this in math, but in pawno is little complicated for me and i need tips/examples how to do it
Codes:
-25% goes here somewhere under giveplayermoney
Giving reputation for help.
Codes:
PHP код:
format(string, sizeof(string), "Your $%d Hit Fee Has Been Returned, Minus A 25 Percent Processing Fee.",PlayerInfo[giveplayerid][pBounty]);
SendClientMessage(playerid, COLOR_SERVER_HELP_MSG, string);
PHP код:
GivePlayerMoney(playerid,PlayerInfo[giveplayerid][pBounty]);
PlayerInfo[giveplayerid][pBounty] = 0;
PlayerInfo[giveplayerid][pBountyHour] = 0;
PlayerInfo[giveplayerid][pBountyMinute] = 0;
PlayerInfo[giveplayerid][pBountyPlacedBy] = -1;
PlayerInfo[playerid][pBountyPlacedOn] = -1;