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 / Function Declaration error

Author
Message
nb6547
14
Years of Service
User Offline
Joined: 31st Mar 2010
Location:
Posted: 15th Apr 2010 15:43
Hey guys, im back with another noob question. I'm trying to get my model to change when i move, i.e change from idle to walking.

i've decided to use a function, and this is what i have



i run into a "Function Declaration" error. and i can't find why.
help is requested
please be gentle
Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 15th Apr 2010 19:25
What line was the error at?

New Site! Check it out \/
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 15th Apr 2010 19:26
Well I tried to compile it and the only error I got was when running it "Error Program ran into function declaration" or something to that effect.

Remember, in DBC all functions have to exist AFTER the END command at the end of your program. If the code hits a function declaration, your program will die.

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose
nb6547
14
Years of Service
User Offline
Joined: 31st Mar 2010
Location:
Posted: 26th Apr 2010 19:47
Thank you BN2, I forgot about that. I had a function before the END command.

I just need help figuring out how to code movement.
i.e. IF i press this, switch to walk, if i let go, switch back to idle

Login to post a reply

Server time is: 2024-04-19 00:54:49
Your offset time is: 2024-04-19 00:54:49