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.

Newcomers DBPro Corner / Need help!

Author
Message
Darkzombies
13
Years of Service
User Offline
Joined: 25th Dec 2010
Location: In multiple tabs, most likely youtube.
Posted: 9th Oct 2011 07:27 Edited at: 9th Oct 2011 07:49
I really am starting to think darkbasic pro hates me, is there any reason this isnt working.



it also wont ever let me put text on a screen with the text command. (If it has sprites or any sort of image)

EDIT: Never mind... I fixed it, apparently I can use "up, down, left, or right" as constants..

but anyways, how do I avoid the annoying "Function declared mid-program blah blah blah" in this code? Cause im getting it lol



"Insert funny coding-related joke here"
Lucas Tiridath
AGK Developer
16
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 9th Oct 2011 08:19
Quote: "how do I avoid the annoying "Function declared mid-program blah blah blah" in this code?"

Functions should appear at the end of your code but you have a command, wait key, after your function and so this is causing the error. You should move your commands to before your functions.

Darkzombies
13
Years of Service
User Offline
Joined: 25th Dec 2010
Location: In multiple tabs, most likely youtube.
Posted: 9th Oct 2011 09:36
OHHHHHH ok, Im relatively new and I know quite a bit, but not little details like that, thanks!

"Insert funny coding-related joke here"
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 10th Oct 2011 05:24
Anytime it hits a function it'll error out. Always put an END before the first function to make sure if program flow somehow gets to the function it won't show an error.

Login to post a reply

Server time is: 2024-11-24 01:32:07
Your offset time is: 2024-11-24 01:32:07