Jump to content
Sign in to follow this  
quick_sliver007

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

Recommended Posts

quick_sliver007

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:

; LIST VIEW

$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?

If

Anyone can help

Then

you have my thanks

EndIF

Else

EndIF

:lmao:


.

Share this post


Link to post
Share on other sites
buzz44

try this

GuiCtrlCreateListViewItem("Life|1|" & $maxlife, $listView)
Edited by burrup

qq

Share this post


Link to post
Share on other sites
quick_sliver007

Thank you so much, that was one of the key parts of my script. Thank you again.


.

Share this post


Link to post
Share on other sites
buzz44

Thank you so much, that was one of the key parts of my script. Thank you again.

<{POST_SNAPBACK}>

anytime :lmao:

qq

Share this post


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
Sign in to follow this  

×