Author Topic: Property System (problem) : The price I want to be shown like 1,000,000 $  (Read 1950 times)

0 Members and 1 Guest are viewing this topic.

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
I have the Property System from Shadow because the Bass Property System was removed. (Thank you Shadow !)

The problem now: I want to make the price to be shown with commas .

For example (with normal Property System):

PropID: 1  PropName: Malibu Club
Price: 3846377


But I want to see something like this (with modified Property System):

PropID: 1 PropName: Malibu Club
Price: 3,846,377


I tried with another " .ini " file where is the "show" price :

1=3,846,377
2=3,734,733


But not working , I see only the first figure ( Price: 3 )

I tried to replace the commas with point :

1=3.846.377
2=3.734.733


But I get the same problem.

And now , I think isn't needed to be another " .ini " special for "show" prices.

I think is something from script, need to put some zeros at %d ...

Thank You !

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline cocky

  • Street Thug
  • *
  • Posts: 24
    • View Profile
I think stormeus released a script snippet that allows you to format numbers to thousands. (im not sure but ask him)

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
I think stormeus released a script snippet that allows you to format numbers to thousands. (im not sure but ask him)

I remember the Stormeus's snippet but it was removed :P (and Stormeus isn't online)

But however, now I try to learn Squirrel so ...  I will close this topic :)

Thank You !
« Last Edit: August 14, 2012, 07:51:41 pm by sseebbyy »

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.