[Include] Decimal Money (Cents)
#10

Ohh I got suggestion idk if you people will like it, but instead of doing two parameters in the functions (cent,dollar) you should do
Код:
GivePlayerMoneyEx(playerid, amount[]);
Then you could do:
pawn Код:
GivePlayerMoneyEx(playerid, "2500.50");
Then you could just split the string with the deliminator of '.' then use strval to convert. Just my suggestion. Also TakePlayerMoneyEx inst needed because you can just give someone a negative amount of money.
Reply


Messages In This Thread
Decimal Money (Cents) - by Grim_ - 03.09.2010, 22:15
Re: Decimal Money (Cents) - by MrDeath537 - 03.09.2010, 22:16
Re: Decimal Money (Cents) - by Dime - 03.09.2010, 22:25
Re: Decimal Money (Cents) - by Luka P. - 03.09.2010, 22:37
Re: Decimal Money (Cents) - by Vince - 03.09.2010, 22:37
Re: Decimal Money (Cents) - by Brian_Furious - 04.09.2010, 00:26
Re: Decimal Money (Cents) - by Grim_ - 04.09.2010, 00:26
Re: Decimal Money (Cents) - by Luka P. - 04.09.2010, 00:42
Re: Decimal Money (Cents) - by Toni - 04.09.2010, 00:56
Re: Decimal Money (Cents) - by lolumadd - 04.09.2010, 01:00

Forum Jump:


Users browsing this thread: 2 Guest(s)