Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Adding a percentage
« previous
next »
Print
Pages: [
1
]
Author
Topic: Adding a percentage (Read 472 times)
Duxteif
September 24, 2008, 10:13:08 PM
What I'm trying to do is add 2.5% intrest to peoples money in the 'bank'. I'm not sure how to do this in script.
E.g: Not in script
Persons cash + 2.5% = w/e
In script
%client.bankmoney + (Not sure how do add the percentage)
Ad Bot
Advertisement
Falcondude
September 24, 2008, 10:20:31 PM
%client.bankmoney *= 1.025;
I think *= is a function... if it's not, then I'm an idiot and find some multiplying function
You might wanna round the number, too, so you don't have 25.6 cents
Duxteif
September 25, 2008, 03:17:43 AM
Worked a charm, thanks.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Adding a percentage