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 Professional Discussion / Unable to understand command?

Author
Message
The Scorpion
23
Years of Service
User Offline
Joined: 12th Oct 2002
Location: United States
Posted: 23rd Oct 2003 03:46
I would put the code here but it's HUGE and would require the core of my program. There is a ENDIF command at line 441 that it says it can't understand. Every ENDIF has a matching IF I don't know what's wrong! Anyone have any ideas?

Much regards,
The Scorpion
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 23rd Oct 2003 05:04
did you triple check? are each IF-ENDIF blocks indented?

-RUST-
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Oct 2003 07:39
It might not be endif itself, but perhaps an error within the block.
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 23rd Oct 2003 10:06 Edited at: 23rd Oct 2003 20:14


-RUST-
Xanatus
23
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Germany
Posted: 23rd Oct 2003 10:49
"Unable to understand command" means that a selfwritten function does not exist.
Impreza
23
Years of Service
User Offline
Joined: 7th Nov 2002
Location:
Posted: 23rd Oct 2003 17:52
so in other words, going along with the above, I think that you have just misspelled a real function by mistake of course (there fore being a function that wasn't made so it gave you that error, or put a space inbetween the words of the function name (same thing)) or you typed in something by accident and forgot to REM it or you may have just called a function that you did not define yet or was not included in the code.

that should do it.

set mipmap mode 1: set matrix texture 1,1,1: set spot light 1,0,90: set normalization on: sync rate 0: statistic(1): flush video memory
autocam off: always active on: hide mouse: set window on
Zener
22
Years of Service
User Offline
Joined: 4th Oct 2003
Location: United States
Posted: 23rd Oct 2003 20:26
One mistake I make when writing code in DBP is the use of the ( and ) after the built in functions. Some of the functions Require them, i think the ones that take only 1 argument like "object position x(1)", and some that require that they are not used like "rotate object 1,x,y,z".

That may be what is giving you that error.
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 23rd Oct 2003 20:42
Did you use "THEN" with "IF" this negates the use of "ENDIF"

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
The Scorpion
23
Years of Service
User Offline
Joined: 12th Oct 2002
Location: United States
Posted: 24th Oct 2003 04:03
Thanks guys, I checked my function CreateText() and it turns out i missed it on the first couple run throughs of reading my code, but i forgot the "e" and had CreatText()....pfft sorry about the cluelessness of myself.

Much regards,
The Scorpion

Login to post a reply

Server time is: 2026-07-26 05:21:26
Your offset time is: 2026-07-26 05:21:26