Decimal Money
#4

Quote:
Originally Posted by Ubuntu
Посмотреть сообщение
No, this is not what I want.

I want to make only 1 Variable in "float" like example:

new float:money;

Then I want to make it unique variable for all the script.

So when I pay someone I do /pay [playerid] [0.0]

float:money will change the TextDraw.

Yes you can have Decimal Money in GTA.

Everything is possible you just need to think how you are going to do it.
Well, you can round that number up with floatround and then if that rounded number is bigger than the float number, you can substract it (rounded number - float number). Then you can substract 1,00 - result, to get the decimal numbers. If the number is smaller, you can then increase rounded number by 1 and then do the same thing as above. Don't know if it will work, just an idea.

Example:
Money = 124,63
When you round that up, you get 125,00
125-124,63 = 0,37
1,00 - 0,37 = 0,63
Reply


Messages In This Thread
Decimal Money - by Ubuntu - 30.04.2011, 20:04
Re: Decimal Money - by Outcast - 30.04.2011, 20:13
Re: Decimal Money - by Ubuntu - 30.04.2011, 20:38
Re: Decimal Money - by Outcast - 30.04.2011, 20:52
Re: Decimal Money - by Ubuntu - 01.05.2011, 15:44
Re: Decimal Money - by willsuckformoney - 01.05.2011, 15:54
Re: Decimal Money - by Ubuntu - 01.05.2011, 17:01
Re: Decimal Money - by Joe Staff - 01.05.2011, 17:24
Re: Decimal Money - by Ubuntu - 01.05.2011, 19:26

Forum Jump:


Users browsing this thread: 2 Guest(s)