Jump to content
Sign in to follow this  
NateF

GUI Trouble, 'Variable used without being declared'

Recommended Posts

NateF

Hello everyone, I am still in the process of learning how to script my own GUIs. Koda has been a big help, I have been messing around with it, learning little bits at a time. However, I have encountered an error that I can not seem to get around. The current GUI I am working on is a simple tool to change bot settings for a game. This gui should have 5 buttons for difficulty setting, and a list of check boxes for the number of bots.

BUT, when I select a difficulty level, bot number, and hit save I get this error: 'Variable used without being declared'

 

The error is occuring on this line (save button at the end):    FileWriteLine($file2, "aiSettings.setMaxNBots " & $botnum)

 

I have obviously overlooked something, hopefully it is an easy fix. Does anybody see what might be causing this error?

-snip-

Thanks in advance.

Edited by Jos

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

Please read the forum rules (a link can be found in the bottom right corner of each page). Especially the part about game automation.

This isn't allowed here so you won't get any help with your problem.

Hope to see you soon with a legitimate question!


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
NateF

Welcome to AutoIt and the forum!

Please read the forum rules (a link can be found in the bottom right corner of each page). Especially the part about game automation.

This isn't allowed here so you won't get any help with your problem.

Hope to see you soon with a legitimate question!

Alas, I jumped the gun.

Apologies, I did not mean to break the rules..

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×