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.

Newcomers DBPro Corner / Something about brackets...

Author
Message
Ambitious Guy
16
Years of Service
User Offline
Joined: 1st Aug 2008
Location: Florida, USA
Posted: 12th Nov 2008 19:46 Edited at: 12th Nov 2008 22:56
I get an error that says that the "Function call 'WrapValue' expects parameters in brackets at line 26"


Your signature has been erased by a mod
RedFlames
17
Years of Service
User Offline
Joined: 25th Aug 2007
Location: Germania
Posted: 12th Nov 2008 20:17 Edited at: 12th Nov 2008 20:18
well you forgot an < or > there: ( i guess < , but dunno)
wrapvalue(camera angle x(0))180
should be
wrapvalue(camera angle x(0))<180
i dont know why it complains about the brackets though

PS: its against the AUP to reveal your age i think, you should change your signature...

Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 12th Nov 2008 21:52
Well, as the compiler parses the code, it sees that what is after the brackets of the wrapvalue function is neither a space, a comma, a colon or a semicolon and hence figures something is wrong.
The guy who wrote the compiler then assumed that the likeliest error in this case would be that you accidentally put the function parameter after the bracket, instead of inside it, and hence formulated that message.
Or that's my great theory anyways


-> Oh, come on...
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 12th Nov 2008 22:56
Quote: "PS: its against the AUP to reveal your age i think, you should change your signature..."

Not against the AUP exactly, but not a good idea nonetheless.
I've cleared your sig for now - just set it up again with something else.

Ambitious Guy
16
Years of Service
User Offline
Joined: 1st Aug 2008
Location: Florida, USA
Posted: 13th Nov 2008 03:16
Ok. Sorry bout' that. And thanks for the solution.

Your signature has been erased by a mod

Login to post a reply

Server time is: 2024-09-27 22:25:34
Your offset time is: 2024-09-27 22:25:34