[Include] jFraction - ingame fractions with ease!
#4

It could be used to handle player commands. You could have an option for a player to pay another player a certain fraction of his money. Extract the fraction string and use this command to get the decimal value. Divide the player's money by the decimal value and then remove it from player A and give it to player B.

Also, it supports up to 24 numbers and one slash (so 1/11111111111111111111111 is possible, I think).
Reply


Messages In This Thread
jFraction - handle fractions with ease! - by jameskmonger - 13.09.2012, 06:33
Re: jFraction - ingame fractions with ease! - by Glint - 13.09.2012, 08:17
Re: jFraction - ingame fractions with ease! - by SuperViper - 13.09.2012, 14:21
Re: jFraction - ingame fractions with ease! - by jameskmonger - 13.09.2012, 16:33

Forum Jump:


Users browsing this thread: 2 Guest(s)