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.

Newcomers DBPro Corner / What's up with this??

Author
Message
Eepik
20
Years of Service
User Offline
Joined: 29th Jan 2004
Location:
Posted: 31st Jan 2004 17:26
I am going through the 2d starfields tutorial.

I can't get my code that I typed in to compile.

Here are the lines of code in question:
stars(s).speed = stars(s).z * speedfactor# <---errors here with "cannot understand command"
temp col = (255/starlayers) * stars(s).z

The only way I could find to fix it is to copy and paste from the tutorial this line over the 2nd line above.
temp_col = (255/starlayers) * stars(s).z

It will now compile.

Please someone tell me that there is a difference or is this thing full of weird bugs like this?
Eepik
20
Years of Service
User Offline
Joined: 29th Jan 2004
Location:
Posted: 31st Jan 2004 17:32
Here is the code I typed in. This will not compile for me unless I copy and paste the tutorial code on line 32. But as far as I can tell, there is no difference. I even copied and pasted both lines to notepad to look at them closely together..no dice.
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 31st Jan 2004 17:40
This is because you have used temp{Space}col instead of temp_col

I've put an underscore in the var name and it worked for me.

Jas
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 31st Jan 2004 17:42
Sorry, Forgot to add, sometimes the compiler gets confused over where problem occurs, quite often it's the following line it is complaning about about.

Jas
Eepik
20
Years of Service
User Offline
Joined: 29th Jan 2004
Location:
Posted: 31st Jan 2004 17:55
hahahahaha, sorry to be a bother

thanks bud

Login to post a reply

Server time is: 2024-11-26 03:28:05
Your offset time is: 2024-11-26 03:28:05