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 / Back after a few years !!

Author
Message
Justice
22
Years of Service
User Offline
Joined: 22nd Jun 2004
Location:
Posted: 9th Aug 2011 22:28 Edited at: 10th Aug 2011 00:17
Hi,

I havn't been using darkbasicpro for a few years and i have just recently re enstalled it and run the latest update for it.

All seems to work ok under windows 7

I have a small problem though and im hopeing someone can help me as im a bit rusty at darkbasic pro at the moment !!

I run my program and it came up with error : could not understand command

zrotateobjectpro
positionobjectpro
moveobjectpro
yrotateobjectpro

is there an expansion package for these commands and if so which one is it ?

Ive been away for so long i cant remember why these commands are causing an error !!

Hope someone can help

I just saw that i was using nuclear glory expansion for my collision, this has the commands in the include file.

but now it comes up with : Could not understand command inside NGCollision.dba.

Even the demo programs which come with nuclear glory error when run

The main error is

Cannot use RETURN command inside a function at line 380.


which is :

if NGC_dll = 0 then return

any ideas ?
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 10th Aug 2011 12:12
Return is used at the end of a sub-routine, sounds like you should be using "exitfunction" instead.

Maybe the old code used return before exitfunction was added?

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 10th Aug 2011 14:10
You did used to be able to return from inside of a function; but it was decided to be bad practice and was removed in a recent update. I remember reading about it on the forum.

Login to post a reply

Server time is: 2026-07-10 15:31:41
Your offset time is: 2026-07-10 15:31:41