Stack Overflow - PHP money_format(). PHP: money_format() function..
For people, potential writers of a cruise PRISM plugin, who are going to impalement a localized based system should be aware of this limitation on Debian systems.
Also a quick discussion on currency rates would be nice. I know people in the US would like the use the US Dollar, where as people in Australia would want to use the Australian Dollar, and people in Canada would want to use the Canadian Dollar, people in the UK would want to use the Pounds Sterling and people within the EU would want to use the Euro. So I was thinking of including a localized aware currency system within the cruse plugin.
Back in the old days of LFS, cars used to cost Credits beyond the normal basic 3 demo cars. You would have to race, and win to get enough cedits to unlock the next cars. Using this system, Credits would become the base of the cost of these items (and because Scawen is in the UK I'm going to assume that 1 Great Britain Pound (GBP) is equal to 1 Credit (Cr.).) I can then use this data to every 24 hours convert between the currency's. A cop could for example issue a fine in GBP to a player using USD, and it would convert correctly to that currency.
(Anyone have a list of how many credits the cars used to cost back then?)
Miles within the game would of course be worth Credits, and then converted into that player's currency on the fly, so that everyone get's the correct amount of money based on their millage. These are just some of the ideas I'm kicking around and I thought that other people might benifit from the warning above about the money format function.
Happy programming.
For people, potential writers of a cruise PRISM plugin, who are going to impalement a localized based system should be aware of this limitation on Debian systems.
Also a quick discussion on currency rates would be nice. I know people in the US would like the use the US Dollar, where as people in Australia would want to use the Australian Dollar, and people in Canada would want to use the Canadian Dollar, people in the UK would want to use the Pounds Sterling and people within the EU would want to use the Euro. So I was thinking of including a localized aware currency system within the cruse plugin.
Back in the old days of LFS, cars used to cost Credits beyond the normal basic 3 demo cars. You would have to race, and win to get enough cedits to unlock the next cars. Using this system, Credits would become the base of the cost of these items (and because Scawen is in the UK I'm going to assume that 1 Great Britain Pound (GBP) is equal to 1 Credit (Cr.).) I can then use this data to every 24 hours convert between the currency's. A cop could for example issue a fine in GBP to a player using USD, and it would convert correctly to that currency.
(Anyone have a list of how many credits the cars used to cost back then?)
Miles within the game would of course be worth Credits, and then converted into that player's currency on the fly, so that everyone get's the correct amount of money based on their millage. These are just some of the ideas I'm kicking around and I thought that other people might benifit from the warning above about the money format function.
Happy programming.