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 Discussion / Syntax Error Again

Author
Message
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 10th Mar 2009 18:27 Edited at: 11th Mar 2009 16:28
I have a nestling error at line 877, why is this it was all working before? Still if you have Dark Matter then you should have the Babe model, should be in the Babe x folder, I have put the aircraft and hovercraft models as testbox so that you can use your own 3d testbox model, if not use the hover1 model and the airplan043 model from the Dark Basic models that came with Dark Basic

Ashingda 27
17
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 10th Mar 2009 18:49
You might have forgotten to close off a For/Next or Gosub/Return or something like that. Double check your codes.
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 10th Mar 2009 19:36
A trick I have found is to add a remstart right after the label for the last subroutine (so that you don't get another error) and compile. If you still get the error, move the remstart to right after the second one and add a remend right before the RETURN command. Keep moving up until the error disappears and you will know which subroutine/function the error occurs in.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 10th Mar 2009 19:43


no endif


ashinga:

gosubs Don't NEED returns. that won't cause a error
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 10th Mar 2009 21:59
Yes, but then the program wouldn't run correctly. (minus the remmed sub)

~QJ
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 10th Mar 2009 22:12
Without RETURN, the program won't run correctly, but it will compile.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 10th Mar 2009 23:02
ok thanks guys
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 11th Mar 2009 02:06
yes i was just saying no return doesn't cause a syntax error
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 11th Mar 2009 16:25 Edited at: 12th Mar 2009 04:49
Thanks Caleb1994, OK guys in this code the player only straffes in the 3rd person not in the 1st person, and I can't seem to change it , try as I might, is there anyway someone can help me to get it
so that the player (Babe) is straffing in both the 1st and 3rd person please, Sorry but I am still not too good with the go sub command.

Login to post a reply

Server time is: 2025-05-16 20:41:40
Your offset time is: 2025-05-16 20:41:40