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 / Illegal number at line X

Author
Message
Aramyth
15
Years of Service
User Offline
Joined: 13th Oct 2008
Location:
Posted: 14th Oct 2008 00:59
Ok, this is really annoying me now. I've searched the boards here and found a few threads with this query. Sadly, none of them were able to help me

I am following the ScouseKnight Pacman tutorial as part of the games development course I am on. I have reached a part I have spent the last 3 hours trying to fix and I really can't see what's wrong.

The Error: Error 105: Illegal Number at Line 202

Line 202:



What is wrong with that? That's exactly what the tutorial tells me to do, but it just will not work.

The whole code so far:




P.S. Yes I've updated DBPro to 6.9, that didn't help.

P.S.S. Updating on Vista 64bit was a pain, the updater will only recognize the program is installed if it is installed to "\Program Files\The Game Creators", Vista 64 bit likes to install things to "Program Files(x86)"
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 14th Oct 2008 13:47
Print the values of Cast(n,1), Cast(n,2), and Cast(n,3) to see what values are in them.

Aramyth
15
Years of Service
User Offline
Joined: 13th Oct 2008
Location:
Posted: 15th Oct 2008 00:16
Print it where?
revenant chaos
Valued Member
17
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 15th Oct 2008 05:58
He means that you should print them to the screen for diagnostic purposes. Something like:


Put this code in your main loop, just to make sure the values are logical.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th Oct 2008 12:17
I'd guess that the value held in 'Cast(n,3)' is zero - image numbers start at 1.

Aramyth
15
Years of Service
User Offline
Joined: 13th Oct 2008
Location:
Posted: 17th Oct 2008 12:16
Hey, thanks for the replies. Turns out I mistyped a value or two earlier in the code

Login to post a reply

Server time is: 2024-09-27 20:22:05
Your offset time is: 2024-09-27 20:22:05