06.03.2015, 16:37
pawn Code:
new Float:value = strval(inputtext) * 0.4;
GivePlayerMoney(playerid, floatround(value, floatround_round));
https://sampwiki.blast.hk/wiki/Floatround
https://sampwiki.blast.hk/wiki/Floats
EDIT:
I would also recommend that you set a limit on what a player can enter. To make sure they don't enter negative or very high positive values such as -194581371489144 and 19478189587175 for instance.
Example:
pawn Code:
if(!(1 <= strval(inputtext) <= 999999999)) return SendClientMessage(playerid, -1, "You must put a value between 1 and 999999999.");