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 Professional Discussion / TYPE problems....

Author
Message
iaretony
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 1st Jul 2003 18:37
I get an error on the line 28 here. Originally I had this function taking the globals object and the skater object as parameters... That didn't work either... Someone who knows what their doing, PLEASE cut and paste this into DarkBasic and tell me what this error means!

Tony
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 1st Jul 2003 19:13
The problem is at:
make vector2( skater.d_vec )

For some reason, DBpro's MAKE VECTOR2 command is a function that return a value. Although I don't know what the returned value is for. But anyway, a function that return value need to be assigned to a variable on left hand side.

So what I usually do is,

r = make vector2( skater.d_vec )

I just ignore the value in variable r, since I don't know what it suppose to mean.

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 1st Jul 2003 20:17
the return is either 1 (true it created) or 0 (it couldn't be created)

you shouldn't have a problem with them being created as i think dbp is capable of around 4million vectors, but i could be wrong

Login to post a reply

Server time is: 2026-07-17 13:57:35
Your offset time is: 2026-07-17 13:57:35