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 / A simple question regarding dbc and a function

Author
Message
Zombie 20
19
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 8th Apr 2007 03:41
i've been writing my own functions lately, and i'm wondering what i'm doing wrong here. this one just wont work, what have i overstepped?



Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 8th Apr 2007 04:37 Edited at: 8th Apr 2007 04:38
It works for me... I called it like this: StartGame() and like this: StartGame and it worked both ways! I see no reason why that isn't working for you.

Here's my code:



This works too:





Maybe you're doing somethging else wrong in your code and DBC is giving you the wrong line number?

Zombie 20
19
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 8th Apr 2007 05:49 Edited at: 8th Apr 2007 06:00
ah, that could be possible, because one time, it told me that one of my do loops was wrong becasue i typed in loop. thanks appreciate the help, i feel kinda silly. :p once again, i don't know why it won't work, its really weird. But i do appreciate the exampeles, i think i'll be okay.

zombie

Login to post a reply

Server time is: 2026-07-06 01:19:53
Your offset time is: 2026-07-06 01:19:53