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
Kale
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: United Kingdom
Posted: 20th Dec 2002 00:12
i have been trying to run the demos included with DBPro under 3d maths but they always crash! these are the files:

3dmaths1-example.dba.dbpro
3dmaths2-example.dba.dbpro

The latter project crashes on line '18' (Width as float=rnd(100)) saying "#100027: Initialisation data '@$L1' is incompatible type at line 18". I checked the docs on the rnd() command only to find another error:

RND
This command will return a random number between 0 and the range provided. The integer range will be the highest
number you want returned. The return value will be an integer number.

SYNTAX
Return Float=RND(Range Value)


now is it an integer or float?
What the flame does not consume, consumes the flame.
------------------------------------------------------------------------
AMD XP2100+, Geforce4Ti 4400, 512Mb DDR, Abit KX7, WinXP Home
swdave
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United States
Posted: 20th Dec 2002 09:42
You can fix the problem like so.

Width as float
Width=rnd(100)




Login to post a reply

Server time is: 2024-05-02 11:41:48
Your offset time is: 2024-05-02 11:41:48