round down problem with int.
#1

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%?
Reply
#2

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
Reply
#3

Quote:
Originally Posted by Meller
Посмотреть сообщение
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
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)