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 / passing a UDT into a function will only pass the first variable if it's not global?

Author
Message
easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 22nd Apr 2013 10:18
passing a UDT into a function will only pass the first variable if it's not global?
it seems this way...
is this a bug, because you might want to fix it. It makes my current project very difficult

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 22nd Apr 2013 10:39
i can confirm.
workaround is a global array as udt and pass the index.
or a global variable as udt and pass it.
i think its already on the wishlist.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 22nd Apr 2013 16:02 Edited at: 22nd Apr 2013 16:04
It is a known issue (and I had hoped they would work on it) that passing a UDT into a function and then, within the function, passing it to another function doesn't work. And this happens even if it was a global UDT passed to the first function.

Is that what you are talking about MisJoJo?

If not, can you show a sample of the code that is exhibiting the issue?

If this is a new issue, it should be reported in the google list.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 23rd Apr 2013 01:46
Yes this is the issue that I'm talking about, I'd also noticed the one about passing a UDT multiple times between functions, and was going to post about it as well, but it look as if it's covered.

Markus, thanks, I'll be using both of those methods.

Login to post a reply

Server time is: 2024-11-24 11:29:36
Your offset time is: 2024-11-24 11:29:36