Posted: 31st Oct 2022 2:47
When i print this to screen it also dissplays the decimal point and no player wants to see this.

I am sure it is simple, but I can not figure this out.

+ Code Snippet
	seconds#=timer() //seconds
        local min as Float
        min = trunc(sec / 60.0)
        sec = sec - min * 60.0
        
        local ms as Float
        ms = sec - trunc(sec)
        ms = ms * 100.0
        
       sec = trunc(sec)	

//dissplaying it to screen

SetTextString ( 4, line4$ )
line4$ = "Make match in 30 seconds(" +  str (seconds#) +")"
Posted: 31st Oct 2022 3:07
ok I figured this out on my own lol.

I guess adding a 0 at the end like this removes the decimal point.

SetTextString ( 4, line4$ )
line4$ = "Make match in 30 seconds(" + str (seconds#,0) +")"

sorry for this post
Posted: 31st Oct 2022 20:51
It's not a bad post.
You provide a problem and a solution that will help others in future.
Thanks.
ps- I'm sure that some players don't mind if they see your decimal points.
Posted: 1st Nov 2022 3:30
ps- I'm sure that some players don't mind if they see your decimal points