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 / #INCLUDE isn't working

Author
Message
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 5th Sep 2004 03:44 Edited at: 5th Sep 2004 03:47
Why isn't this working ? when I #include my hovercraft od 7 code into my player pilot code it doesn't work, everything complies but I don't see the hovercraft or another matrix what is wrong?
Edizzle
20
Years of Service
User Offline
Joined: 22nd Aug 2004
Location:
Posted: 5th Sep 2004 05:06
huh? mine worked fine.

http://edizzle.100free.com
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 5th Sep 2004 06:07 Edited at: 5th Sep 2004 06:08
Do you what it even is ed tosser?
Edizzle
20
Years of Service
User Offline
Joined: 22nd Aug 2004
Location:
Posted: 5th Sep 2004 10:42
vampyre you should wear a helmet when you type

http://edizzle.100free.com
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 5th Sep 2004 22:15 Edited at: 5th Sep 2004 22:32
Why so I join you and be a prick huh? Is that what you do when you type huh? by the way how are doing keeping it in the family? Are you stuck on sometime or you just a permananent ****hole edizzle tosspot?

Damn it I need answer to why the #include command isn't working, not waste my time with a jackass like you
zane
21
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: manchester, england
Posted: 6th Sep 2004 03:56
hmmm....i carnt find the problem, could you post the hovercraft include file, it might be somthing in that

www.zaneinteractive.uni.cc - my brand new site, check it out - NOW!!!!!
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 6th Sep 2004 04:02 Edited at: 6th Sep 2004 04:21
OK Zane here is the hovercraft code, I am trying to separate the code as I don't want to make it all kludgey I want separate code fr the Hovercraft and the player as I want to be able to allow the player to get in and out of the hovercraft , eventually , as I am making a 3d 1st person R.T.S. the player will be able to get in and out of several vehicles , including air and spacecraft

zane
21
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: manchester, england
Posted: 6th Sep 2004 04:50
after as short look at it (im gonna have a more detailed look lter on), i see a rather large problem.

In DBC, when you use the '#include' command, only functions in the include file are included. therefore, try making the code in the include file one big function, and call the function when you need the program to run the code (though be aware, functions use local variables - best you see the help files about that).

www.zaneinteractive.uni.cc - my brand new site, check it out - NOW!!!!!
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 6th Sep 2004 06:13
Yes I had a look at the manual and I know see why it is compling but nothing is working.

So I shall have to try and do that then, thanks Zane
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 6th Sep 2004 14:26
Quote: "vampyre you should wear a helmet when you type"






Sorry that was so offensive it was funny. Just imagine a dude sitting at a computer, strapping on a helmet, shouting, "READY?!?!?.............1!!! 2!!!!! 3!!!!!!.........GOOOOOOO!!!!!"
Then he types
"CLS"

Crazy Donut Productions, Current Project: Project Starbuks
Sony stole our name!
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 7th Sep 2004 02:05 Edited at: 7th Sep 2004 02:06
Just imagine a bloke with a penius helmet on his head doing the same thing(like in those adverts in Europe for condoms) Oh sorry, we have the star of those commercials and his name is Edizzle

You can take it of now Ed
Edizzle
20
Years of Service
User Offline
Joined: 22nd Aug 2004
Location:
Posted: 7th Sep 2004 11:45
UH OH got me got me. Good one moron. Ok i'll try. Vampyre you smell bad because you don't shower much. Ya Haha got u nhub!

http://edizzle.100free.com
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 8th Sep 2004 02:09
Uhh shouldn't you put the #include crap go at the TOP of the code?

I dunno. One time I accidentally broke DarkBasic using one of the DarkForge code snippets, and whenever you ran/compiled ANYTHING it compiled/ran that code snippet instead. Cool. That happened twice, and I had to re-install Dark basic twice. Mm.

[img src=http://blanky.pt-web.net/ddd.gif] >::p
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 8th Sep 2004 09:32 Edited at: 8th Sep 2004 09:33
@edizzle, you stink out the sewage of mankind because you haven't washed since they pulled you out of your mother's **** you thick stench ape got you you so called "experieneced prog"
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 8th Sep 2004 18:05 Edited at: 8th Sep 2004 23:35
Settle down guys.

If this continues to happen I'll lock this thread quicker than you can say "experieneced prog".

Call me harsh but this is not a place for exchanging explicit insults.

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 8th Sep 2004 20:08
OK, OK Dave, @Blanky186 I actually wanted to include the hovercraft and it's controls as I don't want to write a giant script with everything included.

I will try making the whole program a function but I bet I get "program ran into a function declaration" and I don't know , really how to get out of that error
zane
21
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: manchester, england
Posted: 9th Sep 2004 01:55
dont let it reach the function (ie. put the function at the very bottom of the script, and put a loop to stop the program from reaching the function)

www.zaneinteractive.uni.cc - my brand new site, check it out - NOW!!!!!
SandraD
20
Years of Service
User Offline
Joined: 30th May 2004
Location: Down on the corner, out in the street.
Posted: 9th Sep 2004 04:50
And put an END command between the functions and the upper looped code. It's amazing how many forget about this little word.
S.

Any truly great code should be indisguishable from magic.
vampyre
22
Years of Service
User Offline
Joined: 14th Nov 2002
Location:
Posted: 9th Sep 2004 12:27
I see well I will do that then as long as I don't get the usual program ran into a fucntion declaration and these suggestions help then I will do this thank you

Login to post a reply

Server time is: 2025-05-24 21:20:08
Your offset time is: 2025-05-24 21:20:08