SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Closed Thread
 
Thread Tools Display Modes
Old 03/09/2010, 11:15 PM   #1
Grim_
High-roller
 
Grim_'s Avatar
 
Join Date: Sep 2008
Location: United States
Posts: 2,862
Reputation: 118
Default Decimal Money (Cents)

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

Last edited by Grim_; 23/07/2011 at 03:52 AM.
Grim_ is offline  
Old 03/09/2010, 11:16 PM   #2
MrDeath537
High-roller
 
Join Date: Nov 2009
Location: Argentina
Posts: 1,959
Reputation: 29
Default Re: Decimal Money (Cents)

Wowww, very nice!. First
__________________
Sometimes I return.
MrDeath537 is offline  
Old 03/09/2010, 11:25 PM   #3
Dime
Huge Clucker
 
Join Date: Jul 2010
Posts: 257
Reputation: 1
Default Re: Decimal Money (Cents)

agree with mrdeath
ps second lol
Dime is offline  
Old 03/09/2010, 11:37 PM   #4
Luka P.
High-roller
 
Join Date: Feb 2009
Posts: 1,428
Reputation: 13
Default Re: Decimal Money (Cents)

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
Luka P. is offline  
Old 03/09/2010, 11:37 PM   #5
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,086
Reputation: 2655
Default Re: Decimal Money (Cents)

Quote:
Originally Posted by Grim_ View Post
I'm honestly not even sure if other currencies use the cent or anything like it.
LMAO

Nice script though.
__________________
Vince is offline  
Old 04/09/2010, 01:26 AM   #6
Brian_Furious
Gangsta
 
Brian_Furious's Avatar
 
Join Date: May 2009
Location: C:\Windows\System32\brian_furious.dll
Posts: 710
Reputation: 40
Default Re: Decimal Money (Cents)

Can you put some exemples of the INCLUDE?
__________________
I currently working on a NEW LA:RP (Los Angeles RolePlay) 3.0 R2
Brian_Furious is offline  
Old 04/09/2010, 01:26 AM   #7
Grim_
High-roller
 
Grim_'s Avatar
 
Join Date: Sep 2008
Location: United States
Posts: 2,862
Reputation: 118
Default Re: Decimal Money (Cents)

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 Code:
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
Grim_ is offline  
Old 04/09/2010, 01:42 AM   #8
Luka P.
High-roller
 
Join Date: Feb 2009
Posts: 1,428
Reputation: 13
Default Re: Decimal Money (Cents)

It IS needed.
Luka P. is offline  
Old 04/09/2010, 01:52 AM   #9
lolumadd
Huge Clucker
 
Join Date: Sep 2009
Posts: 350
Reputation: 8
Default Re: Decimal Money (Cents)

I love you Grim_, we need to talk more on MSN D:. Btw, put morahh effort into your topics cuz u got good shiz herz!
__________________
lolumadd is offline  
Old 04/09/2010, 01:56 AM   #10
Toni
High-roller
 
Toni's Avatar
 
Join Date: Aug 2009
Location: United States
Posts: 1,464
Reputation: 156
Default Re: Decimal Money (Cents)

Quote:
Originally Posted by Grim_ View Post
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 Code:
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
__________________
Toni is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] Server-sided Money - Stop money hackers! NEW RELEASE(v6) x-cutter Includes 107 30/08/2011 08:56 PM
[FilterScript] [GM-ADDON] Anti Money Hack (No-Alternative-Money) ipsBruno Filterscripts 16 21/02/2011 01:36 AM
How to reduce decimal places in float numbers? Mr.Z Help Archive 2 01/06/2010 10:16 PM
Remove Decimal Values VirSpectorX Help Archive 2 14/04/2010 08:29 AM
Colors - decimal notation [explanation needed pls] Rainmaker Help Archive 7 15/09/2009 11:46 PM


All times are GMT. The time now is 11:24 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.