[Include] Decimal Money (Cents)
#1

Outdated and un-supported. Please don't ask me for a download, as I do not have a copy.
Reply
#2

Wowww, very nice!. First
Reply
#3

agree with mrdeath
ps second lol
Reply
#4

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
Reply
#5

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.
Reply
#6

Can you put some exemples of the INCLUDE?
Reply
#7

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
Reply
#8

It IS needed.
Reply
#9

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
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)