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 / Weird bugg ? Cant create an typed array inside an gosub?

Author
Message
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 7th Sep 2011 21:39 Edited at: 7th Sep 2011 21:48
Noticed this when i whas combining the parts of my aliens in to one single file?

this dosent work?


Initiate_Aliens:

type sAlien
iSprite as integer
iEngine as integer
fSpeed#
fValueA#
fValueB#
endtype

// 10 aliens ///////////////
global Dim g_Aliens [ 10 ] as sAlien

global g_iShip = 0
global g_iParticles = 0

return

But if i put this right after the call to the gosub so does it work?
// 10 aliens ///////////////
global Dim g_Aliens [ 10 ] as sAlien

Edited..............
Weird as this one works ?

Initiate_Aliens:

type sAlien
iSprite as integer
iEngine as integer
fSpeed#
fValueA#
fValueB#
endtype

global g_iShip = 0
global g_iParticles = 0

// 10 aliens ///////////////
global Dim g_Aliens [ 10 ] as sAlien

return
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 9th Sep 2011 04:08
http://code.google.com/p/agk/issues/list

I drink tea, and in my spare time I write software.
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 10th Sep 2011 13:07
Seams to work when i put it at the end

So no nead right now

Login to post a reply

Server time is: 2024-11-23 12:50:10
Your offset time is: 2024-11-23 12:50:10