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 / What is the unrecognised parameter in this line of code?

Author
Message
Brazos
22
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 27th Jul 2008 20:20



I keep getting that error message and I just don't see the problem.
Robert The Robot
18
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 27th Jul 2008 23:58
It's the "(" and ")" that are throwing the errors - for some reason, DBC doesn't seem to like them. Try changing them to use the character ASCII codes - you want Chr$(40) and Chr$(41) if memory serves me write.

I think this will work (might be wrong on the ASCII codes though):


"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."
Brazos
22
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 28th Jul 2008 02:10 Edited at: 28th Jul 2008 02:19
That worked beautifully. Thanks a bunch. I kept going over and over the code thinking I was over looking some little detail. Thanks again.
NanoGamez guy
18
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 28th Jul 2008 02:20
You'll need to upload your screenshot to a free image hosting site (like photobucket or image shack) and then copy the URL of it into you post surrounded by

and



Thank you for your time.
Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 4th Aug 2008 03:07 Edited at: 4th Aug 2008 03:15
dbc is crabby and unclear about this one ! This error message is basically a syntax error on the part of the user and appears :
1) if you dont have a space after every semicolon
2) if you mistyped something in a line
3) This error can also occur when using the case statement -

4)you typed too many parameters to a command. and example would be sleep 400,400,3
`sleep only takes one paremeter
5) you didn't type enough parameters to a command
box 3,3,20 : box 2,2,200,200
`box takes four parameters not three
6) not using spaces before two open or closed parenthisis
"((" and "))" wont work
"( (" and ") )" will work just fine

Quote: "It's the "(" and ")" that are throwing the errors - for some reason, DBC doesn't seem to like them. "


try putting a space between them !

Login to post a reply

Server time is: 2025-06-07 07:02:51
Your offset time is: 2025-06-07 07:02:51