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 / Declaring an array causes an error on compile

Author
Message
NoUJoe
10
Years of Service
User Offline
Joined: 8th Jul 2013
Location:
Posted: 21st Sep 2013 00:28
I try the code:



and I get the error "Declaration name '[1,2,3]' is not valid..."

I am only using the trial as I am waiting for V2 as I am a kickstarter backer (and I thought it was the £25 pledge not the £35 to get V1). Any help would be appreciated.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 21st Sep 2013 01:54
Even though the documentation says that you can do that, it is broken.

But if you change it to "dim test[3] as integer = [1,2,3]" it works.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
NoUJoe
10
Years of Service
User Offline
Joined: 8th Jul 2013
Location:
Posted: 21st Sep 2013 04:02
Oh right, I thought I might be the only one with this problem. Im sure it'll be fixed in V2 anyway.

Yeah I'll just do it that way from now, thanks.

One more thing, and I didn't want to start a new thread just for this as it is probably just another bug that the developers are aware about, but when I try to increase a real number using the inc statement, it returns a really, really long number even though the documentation states that you can do that.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 21st Sep 2013 17:48
Using INC or DEC with a floating point (real) number is currently broken and is going to be fixed.

There are threads out about this topic and it has been accepted as a bug in the Google Issues List.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master

Login to post a reply

Server time is: 2024-05-09 05:50:27
Your offset time is: 2024-05-09 05:50:27