fixed the 1st issue & looking into the 2nd
fixed
replace it with this https://raw.githubusercontent.com/Tazi0/esx_invest/master/esx_invest/database.sql
where is comments
Now it works. Thanks
Did you push the fixes to github ? I cant see the commits. I mean the ghostriders post.
can you help me
about your 2nd issue it looks good to me, here is my calculation
Bought Rate = 0.92%
Sold Rate = 3.87%
Investment = $100
Am = Im + (Im * (Sr - Br))
487 = 100 + (100 * (3.87 - 0.92))
Am = Add money
Im = Invested money
Sr = Sold Rate
Br = Bought Rate
are there any errors?
No I don’t see any error
have you started and correctly installed the plugin
try restarting it
I restart it but it don’t work
So I purchased some stocks for 1,615,000. Waited until it was at 1.6% interest. Sold it and ended up with 4,199,000.
I should’ve got back 1,640,840. That would be my initial investment plus the 1.6% interest. Instead I got back the initial investment plus 160% interest.
Well the calculation is still correct
4,199,000 = 1,615,000 + (1,615,000 * 1.6)
But i do agree that it’s kinda much. should i change it to
2,584,000 = 1,615,000 * 1.6
ahhh with your edit i got it:
1,640,840 = 1,615,000 + ((1,615,000 * 1.6) / 100)
I personally think it’s really high. Our server tries to run a pretty realistic economy. It took a long time to earn 1.6mil (that’s from a collective of 8 people). So even getting back 25,600 on a 1.6mil after the stock goes up 1.6% would be good for us. I guess it really depends on the server. When I read 1.6% in the UI, I was thinking the math would be 1,600,000 * .016. Getting a profit like that would kill our economy.

and 