round down problem with int. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: round down problem with int. (
/showthread.php?tid=640648)
round down problem with int. -
SetPlayerNameTag - 05.09.2017
Let me explain what I'm going to do,
plantTime is the time for do timing of a plant.
plantProgress for displays
plantTime sets a random value since it's created, progress sets as a zero in the beginning.
how to makes it work like if time passes a half of plantTime, and progress would be 50%?
Re: round down problem with int. -
Meller - 05.09.2017
If plantTime is a random value at first, you must save it's static number and then read this:
https://sampforum.blast.hk/showthread.php?tid=415164
Re: round down problem with int. -
SetPlayerNameTag - 05.09.2017
Quote:
Originally Posted by Meller
|
I'd like to have a simple way to do it, I'm currently using plantTime as a looping timer and progress would be use for counting, also progress is not a float it's used on a label GUI progress bar it's already solved but thanks for your reply, I appreciate it