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.

The 20 Line Challenge / Question to Rich

Author
Message
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 11th Aug 2003 19:57
Sorry for posting a question on this board but it seemed wrong to stick it on the general talk board.

My question is, if there is a bug in DB which means that a command works fine on a line by itself, but not on a line with other commands (the command is "Loop"), does my entry count if I have to add a 21st line to make the command work? ie...

This doesn't work (says there is a nesting error)
(20th line)........undim rr#(p):undim sr(2,p):loop

This does work
(20th line)........undim rr#(p):undim sr(2,p)
(21st line)........loop

Its just that it would be a pain to take out some of my code to make room for one command that should really work, although it wouldn't be the end of the world if I did have to shorten it.

Thanks
cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 11th Aug 2003 22:27
hmm.. I'm not Rich, but I'll try to help you...
it's because there is no space around the :, so you have to replace ":" by " : "

"He will come...the voice from the outer world,
bringing the holy war, the Jihad, which will cleanse the Universe and bring us out of darkness."
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 11th Aug 2003 23:43
Nope, doesn't work. I'm using dbc btw.

cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Xeridox
20
Years of Service
User Offline
Joined: 19th May 2003
Playing: Scrap Mechanic
Posted: 11th Aug 2003 23:52
In DBPro, loop works fine on a line with other commands,
but sync and fastsync do not.

I would also like to clear something up:

Would you consider
position object 1,camera position x(),camera position y(),camera position z()

to be one command or 4?

Although I have considered it to be 4 in my program, I just thought I'd ask.
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 12th Aug 2003 00:04
1 command. I asked this before and Rich's definintion is that a command ends where a colon is placed, so yeah that is 1 command.

Mine is an odd problem because there only seems to be a problem in my case. There is a loop inside a loop, there is no problem with the inside loop but there is with the outer one. Odd.

cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Xeridox
20
Years of Service
User Offline
Joined: 19th May 2003
Playing: Scrap Mechanic
Posted: 12th Aug 2003 00:12 Edited at: 12th Aug 2003 00:17
Yeah that is strange....

Thanks for the answer, that really helps. Now perhaps I can add a few more interesting things before I release....

Damokles
20
Years of Service
User Offline
Joined: 28th May 2003
Location: Belgium
Posted: 12th Aug 2003 03:17
You could try replacing the do-loop, with a repeat-until something impossible, like that :
until ploc = 2 (which will never happen, if you don't use ploc)

"Begin at the beginning, and go on till you come to the end: then stop." - Lewis Carroll
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 12th Aug 2003 03:17
Tried . Same thing happens.

cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 12th Aug 2003 03:38
for-next, like

for asditlekjkdjfl = 1 to 900000000000000000000000
your very fine code
next asditlekjkdjfl

---Mattman
DID YOU KNOW THAT ???
Quote: "Life Is Short" That's a bummer
keeblerElf
20
Years of Service
User Offline
Joined: 11th Jun 2003
Location: United States
Posted: 12th Aug 2003 05:22
For x=1 to 2:dec x:next x

I don't know if that would work...I don't have DBPro on this computer

Live life and play video games
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 12th Aug 2003 14:51
Never mind, I found the problem, it didn't like having LOOP/NEXT/UNTIL/etc after UNDIM on the same line. I took away the UNDIMs since I discovered you can redim an array without undimming it.

cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM

Login to post a reply

Server time is: 2024-04-19 15:08:56
Your offset time is: 2024-04-19 15:08:56