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 / Arrays inside types?

Author
Message
RifleRound
8
Years of Service
User Offline
Joined: 25th Jan 2016
Location:
Posted: 25th Jan 2016 18:18
i there
im trying to make an array (vertex-type)- and every vertex-type gets a number of arrays (connection).



but its not working

how am i supposed to do it?
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 25th Jan 2016 19:25
This is how you do it:

type testTYPE
array as integer[10]
endtype
test as testTYPE
test.array[1] = 100
message( str( test.array[1] ) )
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 25th Jan 2016 22:08
in your case it would be; connection as connectiontype[10]

Sign up for NaGaCreMo!

Login to post a reply

Server time is: 2024-05-22 12:48:23
Your offset time is: 2024-05-22 12:48:23