Jump to content

How do I get this Variable to work in the script?

Recommended Posts

For some reason I don't know, I always have trouble with getting the variable to work in a script after I declare it. Here is the script:


$maxlife = IniRead ( "character.ini", "character", "maxlife", "unknown" )

$listView = GuiCtrlCreateListView("Stats|Current|Max", 565, 10, 180, 80)

GuiCtrlCreateListViewItem("Life|1|$maxlife, ", $listView)

The trouble I have is with the variable $maxlife. For some reason in the list view it says $maxlife, not the value in the Ini. I don't know what to do. I tried it like ($maxlife), '$maxlife' and like "$maxlife" and it still doesn't work right. So how do I write it?


Anyone can help


you have my thanks






Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...