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 / dbc ignores command line

Author
Message
Program_Guy232
20
Years of Service
User Offline
Joined: 4th Jun 2004
Location: I really don\'t know, maybe a bunker!
Posted: 28th Aug 2004 09:20
NO MATTER WHAT i DO IT GOES TO "FIRE"
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 28th Aug 2004 09:26
I dont think "NOT ENOUGH MEMORY" is a valid goto label. Try: Not_Enough_Memory

And check the spelling, disharge?

Program_Guy232
20
Years of Service
User Offline
Joined: 4th Jun 2004
Location: I really don\'t know, maybe a bunker!
Posted: 28th Aug 2004 09:38 Edited at: 28th Aug 2004 09:42
NOT_ENOUGH_ENERGY ALSO DOSENT WORK

p.s thx for sp.
Sir Spaghetti Code
20
Years of Service
User Offline
Joined: 12th Jul 2004
Location: Just left of Hell
Posted: 28th Aug 2004 10:27
I have heard that GOTO is not a very well implemented command. Use GOSUB, or FUNCTION instead. That may clear it up, as I have heard of others getting weird error messages when using GOTO.

"I attribute the quarrelsome nature of the Middle Ages young men entirely to the want of the soothing weed."
-Jerome K. Jerome(1859-1927),Writer
medwayman
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: uk
Posted: 28th Aug 2004 12:48
If you want that to work then use if endif



Goto has its uses, but as Sir Spaghetti Code says, use gosub or a function to handle firing.

Based on Amiga PD game Squigs. Early shots: http://www.custardsoft.pwp.blueyonder.co.uk/images/03.png

Indian Homie G
21
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: San Jose, CA
Posted: 28th Aug 2004 15:39
And if your using a function dont forget to "GLOBALIZE" all the variables youll be using in the function . If you dont know what this means, post back here.

Cheers!

AMD Athlon XP 3000+, S3 Deltachrome s8, 512 PC3200 RAM, 160 GB HD
Program_Guy232
20
Years of Service
User Offline
Joined: 4th Jun 2004
Location: I really don\'t know, maybe a bunker!
Posted: 29th Aug 2004 02:15

thx[center]

Login to post a reply

Server time is: 2025-05-25 13:17:41
Your offset time is: 2025-05-25 13:17:41