Moderators Pirulax Posted July 30, 2017 Moderators Posted July 30, 2017 (edited) Okey, so, i have this: Picture I hope you got it.I want to calculate the amount of money, but i cant find any working idea... Btw, u need to use the width, which is: 0 - left side 5 - center 10 - right side. Isnt the most accurect example, but i hope u got the idea. btw, its for a minigame. Edited July 30, 2017 by Pirulax
Dretax Posted July 30, 2017 Posted July 30, 2017 How long is that box? (MTA site) Software Engineer, available for hire. http://github.com/dretax
Moderators Pirulax Posted July 30, 2017 Author Moderators Posted July 30, 2017 1 minute ago, Dretax said: How long is that box? (MTA site) 7 minutes ago, Pirulax said: 0 - left side 5 - center 10 - right Btw, its 500 px width. I think i found it. if value < 5 then minigame.TotalMoney = (200000 * 5) / value - 100000 elseif value > 5 then minigame.TotalMoney = (200000 / 5) * (value-5) + 100000 end Just reversed the first one xdd
Dretax Posted July 31, 2017 Posted July 31, 2017 Software Engineer, available for hire. http://github.com/dretax
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now