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

Years of Service
User Offline
Joined: 2nd Sep 2006
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.

Years of Service
User Offline
Joined: 1st Mar 2005
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.
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 .

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


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

Login to post a reply

Server time is: 2023-09-30 20:10:51
Your offset time is: 2023-09-30 20:10:51