Posted: Mon Jul 08, 2019 6:11 pm Post subject: I'm looking for some ideas.
hi ..
I'm adding a "+" value to the Label with the command.
but with each addition the result is "100.0" instead of "100".
How do I get the integer value?
here is a sample code I use below
and something is going wrong!
[code]local xp = UDF1.CELabel16.Caption
[code]function Play(sender)
if UDF1.CEProgressbar2.Position==0 then
xp = xp + 120
UDF1.CELabel17.Caption = xp
Gamexp()
end
end[/code]
but with each addition the result is "120.0" instead of "120".
How do I get the exact number of "120" without ".0"?
Thanks in advance for the answers. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum