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 / Strict mode?

Author
Message
Xaron
12
Years of Service
User Offline
Joined: 3rd May 2014
Location: Germany
Posted: 31st May 2017 15:40
Hey there,

is there kind of a strict mode for Tier 1? I mean that you have to declare variables before using them which can be quite a painful bug possibility otherwise....

Thanks!
Username Goes Here
User Deleted
Posted: 31st May 2017 15:41
Yes there is.

Running Windows 7 Home, 64 bit, 8 GB ram, Athlon II X2 255, ATI Radeon HD 4200. Using AGK2 Tier 1.
Xaron
12
Years of Service
User Offline
Joined: 3rd May 2014
Location: Germany
Posted: 31st May 2017 15:44
Danke!
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 31st May 2017 15:46 Edited at: 31st May 2017 15:47
edit: I stand corrected!
Help out a fellow dev! Download and rate my games! They're free!

Wizzed Off! - (Android) (iOS)
God of Thunder - (Android) (iOS)
Extreme Lawn Mowing - (Android) (iOS)
Username Goes Here
User Deleted
Posted: 31st May 2017 15:49
I forgot to add that in my opinion, you need to add it to every file.
Running Windows 7 Home, 64 bit, 8 GB ram, Athlon II X2 255, ATI Radeon HD 4200. Using AGK2 Tier 1.
Xaron
12
Years of Service
User Offline
Joined: 3rd May 2014
Location: Germany
Posted: 31st May 2017 15:51
Thanks again, will try it!
Markus
Valued Member
22
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 31st May 2017 16:52
Quote: "you need to add it to every file."

sicher? ich hatte das immer nur in die main datei rein getan weil die anderen per insert oder include nur die hauptdatei verlängern.
AGK (Steam) V2017.05.15 : Windows 10 Pro 64 Bit : AMD (17.4.4) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
george++
AGK Tool Maker
19
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 31st May 2017 18:25
C'mon Markus, your comments are always useful, so give us a translation
These seems Greek to me! lol!
Xaron
12
Years of Service
User Offline
Joined: 3rd May 2014
Location: Germany
Posted: 31st May 2017 20:11
Greek? Pah that's German, so even worse.

He meant that it should be enough to put it into one file which is Included anyway as internally one huge file is used.
PSY
Developer
10
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 31st May 2017 21:52
First thing I do is #option_explicit in my main file.
Doesn't really matter where you do it..

Quote: "Use this anywhere in your program to force variables to be declared before using them. No matter where it is used, it applies to the entire program"
PSY LABS Games
Coders don't die, they just gosub without return
Username Goes Here
User Deleted
Posted: 1st Jun 2017 04:36
Ok.good to know.
Running Windows 7 Home, 64 bit, 8 GB ram, Athlon II X2 255, ATI Radeon HD 4200. Using AGK2 Tier 1.

Login to post a reply

Server time is: 2026-07-10 10:40:46
Your offset time is: 2026-07-10 10:40:46