23.05.2014, 12:04
Quote:
....
Float:GetPercentageOfMoney(playerid, Floatercents) { return floatdiv(floatmul(GetPlayerMoney(playerid), percents), 100); } |
pawn Код:
new money = 5000,
Float: percentMoney = (money * 0.65); // 65 percent of money
EDIT: In response to your below post -
pawn Код:
main() {
new money = 5000;
new Float: percentMoney = (money * 0.50);
printf("%0.2f", percentMoney);
}