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.

Author
Message
UnSomething
23
Years of Service
User Offline
Joined: 13th Mar 2003
Location:
Posted: 11th Nov 2003 17:20
hi!
well i was using the DBPro vector commands and suddenly noticed a strange thing:

This code should print out:
myvec1=100,100,100
myvec2=200,200,200
but it prints out:
myvec1=200,200,200
myvec2=200,200,200

it seems to me that the second set vector3 also sets the first one.
confused...
Thanks for help
Neophyte
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 11th Nov 2003 18:03
@UnSomething

I believe that the problem is that both myvec1 and myvec2 are equal to zero. What the compiler sees is not set vector2(myvec1) set vector3(myvec2), but set vector3(0) set vector3(0).

If you set one of the variables like so:


Then it works correctly.
UnSomething
23
Years of Service
User Offline
Joined: 13th Mar 2003
Location:
Posted: 11th Nov 2003 18:07
many thanks! have an imaginary kudos

Login to post a reply

Server time is: 2026-07-26 19:47:05
Your offset time is: 2026-07-26 19:47:05