float condition help
#1

hii all

i'm create progress bar, progressbar value use float type data. i create condition like this

Код:
if (playerdata[playerid][wtf] <= 0.0)
↑not work↑

playerdata[playerid][wtf] ← data for value progressbar. if im use integer progressbar value cannot change.

how to fix condition use float? or any solution?
Reply
#2

Have you defined the enum variable as a float type? Your logic in your code may increment in float percentages so that would explain why it does not change when set to an integer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)