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 Professional Discussion / The name "function" duplicated in the program error

Author
Message
Chris R
15
Years of Service
User Offline
Joined: 30th Aug 2010
Location:
Posted: 30th Aug 2010 16:34
I keep encountering this error whenever I try and compile the program. The code I am using is from a Pac-Man tutorial. I even tried deleting all my code and just copying and pasting the code straight from the tutorial but it still gives me the same error.

Can anyone offer a solution to this problem?

Thank You
=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 30th Aug 2010 17:10 Edited at: 30th Aug 2010 17:11
Not without seeing some code

>edit<

Altho the error suggests to me that you have either tried to use a reserved word for a function name, or you have created the same function twice.

(Maybe you have used a space in a function name somewhere)

Mugen Wizardry
User Banned
Posted: 30th Aug 2010 17:11
um. u cant use the name "function" as a constant or global or IN a constant or global

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/

Login to post a reply

Server time is: 2026-07-23 12:09:44
Your offset time is: 2026-07-23 12:09:44