Decimal Money (Cents) -
Grim_ - 03.09.2010
Outdated and un-supported. Please don't ask me for a download, as I do not have a copy.
Re: Decimal Money (Cents) -
MrDeath537 - 03.09.2010
Wowww, very nice!. First
Re: Decimal Money (Cents) -
Dime - 03.09.2010
agree with mrdeath
ps second lol
Re: Decimal Money (Cents) -
Luka P. - 03.09.2010
Well, I have suggestions for next versions (if there is going to be some):
- Replace the enumerator with the PVars
- Make this include plug'n'play, by that I mean use the some callback hooking method
Re: Decimal Money (Cents) -
Vince - 03.09.2010
Quote:
Originally Posted by Grim_
I'm honestly not even sure if other currencies use the cent or anything like it.
|
LMAO
Nice script though.
Re: Decimal Money (Cents) -
Brian_Furious - 04.09.2010
Can you put some exemples of the INCLUDE?
Re: Decimal Money (Cents) -
Grim_ - 04.09.2010
Thanks.
@Luka P.: There's most likely not going to be another version, unless it's needed. If there is, I'll use PVars.
@The toni: It's simple
pawn Код:
if(!strcmp(cmdtext, "/buy", true))
{
new d, c;
GetPlayerMoneyEx(playerid, d, c);
if(d > 5000 || d == 5000 && c >= 50)
{
GivePlayerWeapon(playerid, 29, 500);
TakePlayerMoneyEx(playerid, 5000, 50);
}
return 1;
}
They are able to buy a MP5 that costs $5000.50
Re: Decimal Money (Cents) -
Luka P. - 04.09.2010
It IS needed.
Re: Decimal Money (Cents) -
Toni - 04.09.2010
Quote:
Originally Posted by Grim_
Thanks.
@Luka P.: There's most likely not going to be another version, unless it's needed. If there is, I'll use PVars.
@The toni: It's simple
pawn Код:
if(!strcmp(cmdtext, "/buy", true)) { new d, c; GetPlayerMoneyEx(playerid, d, c); if(d > 5000 || d == 5000 && c >= 50) { GivePlayerWeapon(playerid, 29, 500); TakePlayerMoneyEx(playerid, 5000, 50); } return 1; }
They are able to buy a MP5 that costs $5000.50
|
lol, that was brian_furious xD - hes a supporter :S.
But, good job! Might use it
Re: Decimal Money (Cents) -
lolumadd - 04.09.2010
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.