18.02.2017, 21:11
Hey guys, I want to make a percent system that will tell you the stage of something, for example.
This is 36% done.
For example, I will have my variable set to 60. which means one hour, 60 minutes, I will have a timer that will lower 1 every second, the thing is, how can I get the percent from that variable? Like, if it is 0, the text will show.
This is 100%! COMPLETED!
but if the variable is 60 the text will show.
This is 0% completed. I think you got what I mean, I want the percent to update with the variable.
Something like this? Like if the variable is 6 it should be 10% because, 10/100 * 60 = 6 but how can I do this in pawn?
This is 36% done.
For example, I will have my variable set to 60. which means one hour, 60 minutes, I will have a timer that will lower 1 every second, the thing is, how can I get the percent from that variable? Like, if it is 0, the text will show.
This is 100%! COMPLETED!
but if the variable is 60 the text will show.
This is 0% completed. I think you got what I mean, I want the percent to update with the variable.
Something like this? Like if the variable is 6 it should be 10% because, 10/100 * 60 = 6 but how can I do this in pawn?