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 / Error: Function call 'wrapvalue' expects parameters in brackets

Author
Message
Dko
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 12th Apr 2008 22:06
Hiya I'm preaty new to Dark basic but not to other programing languages and i was trying out the FPS tutorial that comes with Dark basic and came up with a error.
On my line line 49 of my code I get the error shown in the title. I was wondering what could possibly cause this?

here is what my code looks like so far.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 12th Apr 2008 22:59
I think it should be like this



added '<' to the code after the brackets.

Dark Physics makes any hot drink go cold.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 12th Apr 2008 23:01 Edited at: 12th Apr 2008 23:01
these parts on lines 49 and 50:

...wrapvalue(camera angle x(0))180
...wrapvalue(camera angle x(0))280

don't make sense. you're missing " < " signs, i expect.

edit: yeah, what howdo said

Virtual Nomad
AMD XP 1800+ (~1.6 Ghz) / 1.5 GB RAM
ATI Radeon 8700LE 128 MB / Windows XP
Dko
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 13th Apr 2008 16:10
Alrighty. I figured that was the problem. The tutorial code doesn't have them in there though so I took it for granted. Thanks for the help

Login to post a reply

Server time is: 2024-09-27 14:23:40
Your offset time is: 2024-09-27 14:23:40