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 / problem with function

Author
Message
PFS JGTJUH45
19
Years of Service
User Offline
Joined: 5th Feb 2006
Location: somewhere in the future...
Posted: 17th Feb 2006 13:38
i have a problem with a function...
please tellme how to do this.
PLEEEEEAAAAASSSSSEEEEE?

im a BUG FINDER

Attachments

Login to view attachments
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 17th Feb 2006 14:35 Edited at: 17th Feb 2006 14:35
did you:
gosub _func_thns ?

to use your function, just where ever you tried to access it in your loop, just type text_level()
So far if that's the entire function, replace (GTREA) with () since you're not using GTREA anywhere inside the function. and wait doesn't need brackets either...

Unlike other programming languages where you must declare your function, before you use it, it Dark Basic, it must exist somewhere, but never run into it - otherwise it tries to do the function and doesn't know if it's any parameters missing, so it simply crashes.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 17th Feb 2006 22:03
A bug finder, you should really use DarkEdit. It's a better editor that should be already in your computer. It's in a directory inside your Darkbasic diretory.

I've attached a screenshot of DarkEdit.


Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-05-23 14:58:27
Your offset time is: 2025-05-23 14:58:27