Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / timer- Making decimal point not show

Author
Message
Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 31st Oct 2022 02:47 Edited at: 31st Oct 2022 02: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.

Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 31st Oct 2022 03: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
ando
4
Years of Service
User Offline
Joined: 21st Feb 2020
Location: Australia
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.
BASIC appeared in May 1964. Lightning flashed, the wind roared and the Earth moved.
And nine months later I was born.
So here I am.
I am Basic.
Code is in my genes.
Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 1st Nov 2022 03:30
Quote: "ps- I'm sure that some players don't mind if they see your decimal points"


Login to post a reply

Server time is: 2024-11-23 09:35:20
Your offset time is: 2024-11-23 09:35:20