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 Studio Chat / Weird function name behaviour

Author
Message
dooz
18
Years of Service
User Offline
Joined: 22nd Sep 2005
Location:
Posted: 28th Aug 2021 22:23
I've been using AppGameKit for years, but in my recent project I just noticed this strange behaviour with function names:



Generates these errors:



What's the issue here? It seems to think that the x parameter in the second and third functions are defining function names.


PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 28th Aug 2021 22:32
using #option_explicit you are telling AppGameKit to behave like this, remove it and the variables are treated as local scope to the function.
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee

Login to post a reply

Server time is: 2024-04-19 22:18:27
Your offset time is: 2024-04-19 22:18:27