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.

AppGameKit Classic Chat / Please Help with Unknown Program Crash

Author
Message
Uechi
17
Years of Service
User Offline
Joined: 2nd Sep 2006
Location:
Posted: 20th Aug 2011 17:00 Edited at: 22nd Aug 2011 19:04
The following code works correctly but if I put the remstart after the Bird$(49) entry it crashes and I don't know why. Can anyone help with this? I have had other problems like this one.


briwal
19
Years of Service
User Offline
Joined: 1st Mar 2005
Location:
Posted: 22nd Aug 2011 03:22
Arrays are zero based (aren't they) so with dim Bird$[50] the index goes from 0 to 49. If you index 50 then you'll get an error.
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 22nd Aug 2011 11:27
@ briwal: I think they can go from 0 to max_value - see snippet



@Uechi: Please put your code into code snippets (inbetween code tags [ code]Code Here[ /code] without the spaces in the tags) as it makes posts massive.

As far as I can tell (I haven't played around with the text commands) but your code seems fine. I have heard that remstart and remend are ineffective right now though. You also set the virtual resolution twice .

MikeHart
AGK Bronze Backer
20
Years of Service
User Offline
Joined: 9th Jun 2003
Location:
Posted: 23rd Aug 2011 16:47
Arrays in AppGameKit are zero based but you get +1 slots!

A



will give you an array with indexes ranging from 0-10.

Login to post a reply

Server time is: 2024-03-29 05:32:53
Your offset time is: 2024-03-29 05:32:53