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.

Geek Culture / HELP!

Author
Message
BuzzBob
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location:
Posted: 15th Jun 2003 18:28
Could somebody make a list of all the things that could be effected by compressing a single-command-per-line program into one constantly using colons, becuase I tried it with an already made program but it just won't work anymore, it keeps on coming up with nesting error messages. The only things I've found to be affected are functions and line labels with which my program uses neither. I think a list would also be useful to other people doing the same thing. My failing source code is attached(I know it's a bit strange at places and doesn't fit into 20 lines but I'm working on it!)
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 15th Jun 2003 18:41
Biggest thing is differences in IF commands

you can either have

IF v=1
command1
command2
command3
ENDIF

or

IF v=1 THEN command1 : command2 : command3

i.e. if you use the 'THEN' command, then all commands till then end of the line are run if condition is true, with no ENDIF needed

Gronda, Gronda
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 15th Jun 2003 19:51 Edited at: 15th Jun 2003 19:51
but then, that might waste 1 of his precious 20 lines !!!

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 15th Jun 2003 22:03
Sync doesn't like being on the same line as anything else, neither does cls. That's all I've come across so far, apart from the if..then thing.

Once I was but the learner,
now, I am the Master.
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 16th Jun 2003 01:45
Labels need to be the first thing on the line or they won't work.

"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 16th Jun 2003 12:19
yes sync & cls mess up if you do this:

code:code:code:sync:code

but do this:

code : code : code : sync : code

also declaring types I had touble with. I found they like to be at beginning of a line and the elements shouldn't have spaces eg:

type enemy:x:y:z:health:endtype : code : code .....
BuzzBob
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location:
Posted: 17th Jun 2003 21:42
FIXED IT!!! It was that If then thing, just replaced it with if...endif, sync and cls actually don't matter on DBC, I had no trouble with them.

Login to post a reply

Server time is: 2024-09-20 02:24:45
Your offset time is: 2024-09-20 02:24:45