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 / Another Syntax Error

Author
Message
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 26th Mar 2009 12:20
Sorry I have tried to find the syntax error at line 640 but can't find it, frustrating
MidKnight
16
Years of Service
User Offline
Joined: 26th Mar 2009
Location:
Posted: 26th Mar 2009 13:06
I only see 632 lines. You have any other functions that isn't in your code snippet?
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 26th Mar 2009 15:23
I see multiple nesting errors
for starters, you forgot to put in "loop" in the main,
you put an extra endif in one of the functions,
missed two endif statements in one of the functions,
and here is the fixed version. remember to compile often so that you catch the errors early because I had to disect the code in order to catch all the places you missed something


bluestar4~
---Missle Might - Hero Battles - Zillipede --- which do you like the best ?
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 26th Mar 2009 19:47
Oh OK Bluestar4 thank you very much I will run the revised code
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 26th Mar 2009 19:49
Ran it and it is isaying object doesn't exist at line 67 , I will just have to find out why as the object does exist
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 26th Mar 2009 22:45
well according to the code , I dont see where you even loaded or created object 3. the object must be loaded or created or you will get that error.

bluestar4~
---Missle Might - Hero Battles - Zillipede --- which do you like the best ?
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 28th Mar 2009 04:19
No its OK Bluestar4 don't worry I think I know how I got that mistake, thank you for you help
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 29th Mar 2009 11:13
your most welcome

bluestar4~
---Missle Might - Hero Battles - Zillipede --- which do you like the best ?
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 30th Mar 2009 05:00
No its still coming out with this error and this error shouldn't be there why?
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 30th Mar 2009 05:02
And the thing is I am s close to finishing now I would need to do friendlies and enemies and allow them to get into ground and flying vehicles but I am really really close, got the models ready and everything
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 31st Mar 2009 18:35
although your code has a function that loads the objects, it never calls it, therefore any subsequent calls that expect the objects to be loaded will fail because they are not loaded. That was what I meant in my previous post:
Quote: "I dont see where you even loaded ..."


so all you have to do to correct the error is add a call to the function that loads your objects. If you stil recieve the error after correcting your code then you forgot to load an object in that particular function and it is attempting to access the missing object(s).

bluestar4~
---Missle Might - Hero Battles - Zillipede --- which do you like the best ?
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 4th Apr 2009 09:50
Oh OK Bluestar 4 thank you

Login to post a reply

Server time is: 2025-08-08 20:42:37
Your offset time is: 2025-08-08 20:42:37