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.

DarkBASIC Discussion / Need help with creating strings

Author
Message
Delta
21
Years of Service
User Offline
Joined: 15th Nov 2002
Location:
Posted: 17th Nov 2002 01:37
I know this is so easy that I look like total idiot, mabey ist cos its late and mabey im just a compleat retard but can someon tell me why DB is cying at this

Skid
21
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: United Kingdom
Posted: 17th Nov 2002 02:03
its because maxfrags# is not a string so you can't add it to one, you need to use the str$() command with all other varibles other then strings

Skid
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 17th Nov 2002 02:20


indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 17th Nov 2002 02:21
and i missed one

m6$ = "Score: Player "+STR$(playerscore)+" - AI "+STR$(monsterscore)

Delta
21
Years of Service
User Offline
Joined: 15th Nov 2002
Location:
Posted: 17th Nov 2002 02:49
Ahh! I worked out that that was the problem because I had some lines blocked off, but I didnt know the proper use of the Str$() code, I have never came across it (so the problem wasnt sleep related ) Thanks for the help guys

Works a treat (well that part does now the string variables wont email, but thats a diffrent story all together)

Login to post a reply

Server time is: 2024-03-28 13:54:35
Your offset time is: 2024-03-28 13:54:35