Sign in to follow this  
Followers 0
quick_sliver007

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

4 posts in this topic

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



#2 ·  Posted (edited)

try this

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

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

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

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

<{POST_SNAPBACK}>

anytime :lmao:

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

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  
Followers 0