Jump to content

GUI Trouble, 'Variable used without being declared'


NateF
 Share

Recommended Posts

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
Link to comment
Share on other sites

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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...