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 / UDTs wont work.

Author
Message
Eminent
14
Years of Service
User Offline
Joined: 15th Jul 2010
Location:
Posted: 30th Aug 2010 22:03
Ive been reading Phaelaxs RTS tutorial and trying to make a RTS but making UDTs wont work. DBP says there is some sort of syntax error but it doesnt highlight anything. Heres the code:



LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 30th Aug 2010 23:29
The only thing I get is DBP considers PLANE a keyword, which is sortof funny.

So many games to code.......so little time.
Eminent
14
Years of Service
User Offline
Joined: 15th Jul 2010
Location:
Posted: 31st Aug 2010 01:06 Edited at: 31st Aug 2010 01:07
Really?Yep


BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 31st Aug 2010 06:40
So that fixed it?


Latest progress: Fog of War implemented; frustrated by pathfinding >.>
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 31st Aug 2010 13:26
The snippet provided compiles fine if you change any reference to "Plane" to "airplane" (or any other word not reserved by the system, lol)

Eminent
14
Years of Service
User Offline
Joined: 15th Jul 2010
Location:
Posted: 31st Aug 2010 18:46
Yeah.


DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 31st Aug 2010 19:29
Plane being a keyword is hardly surprising lol. make object plane?

http://s6.bitefight.org/c.php?uid=103081
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 31st Aug 2010 20:03
Years ago, it was MAKE OBJECT PLAIN. I did not realize that they fixed the spelling at some point and left the word PLAIN in for compatibility.

So many games to code.......so little time.
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 1st Sep 2010 00:46
This is why I hate the idea that DBP keywords can have spaces in them. They only make things more confusing.

"everyone forgets a semi-colon sometimes." - Phaelax

Login to post a reply

Server time is: 2024-11-16 16:57:47
Your offset time is: 2024-11-16 16:57:47