Sign in to follow this  
Followers 0
AzKay

IniWrite Isnt working.

4 posts in this topic

#1 ·  Posted (edited)

For $i = 1 To 12
        IniWrite("gta.ini", "Preset", "F" & $i, GUICtrlRead("$Input" & $i))
    Next

And the inputs, are $Input1 up to $Input12, But, My problem is, it just keeps writing 0.

I tryed adding a msgbox, and it returns the right thing, but it just wont write the right thing. Any ideas?

EDIT::

I just noticed, if I make a messagebox, It returns $Input1, But it doesnt return the VALUE of $Input1

Edited by AzKay

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites



For $i = 1 To 12
        IniWrite("gta.ini", "Preset", "F" & $i, GUICtrlRead("$Input" & $i))
    Next
oÝ÷ Ø    ݶ¢­±ªÞÓ~­Öêm£Mú"zn·]ºÓ2¦ºé¢²+cºËdyêl¸­x4"ÚòyÖv)àjk nZØ­­ën®{-êâm)ànëb¶;¬·
'·
âµëaz¸ Ûax(y«?ªê-xƲm쨺wu«Ú®&çè®Ø^è«y§ZºÚ"µÍÜ  ÌÍÚHHHÈLIÌÍÝ[[]ÉÌÍÚWHHÕRPÝXY
    ][ÝÉÌÍÒ[]  ][ÝÈ  [È ÌÍÚJJB^Ü    ÌÍÚHHHÈLR[UÜ]J ][ÝÙÝK[I][ÝË   ][ÝÔÙ]   ][ÝË  ][ÝÑ][ÝÈ    [È ÌÍÚK ÌÍÝ[[]ÉÌÍÚWJB^

Hope it helps :lmao:

Share this post


Link to post
Share on other sites

Maybe you need a variable for the guiread?

For $i = 1 To 12
    $tempinput[$i] = GUICtrlRead("$Input" & $i))
Next
For $i = 1 To 12
    IniWrite("gta.ini", "Preset", "F" & $i, $tempinput[$i])
NextoÝ÷ Øz)z+azZlþ«¨µáÞæ(º;¬¶·©'iû^¬bv+méhÉ«­¢+Ø(%%¹¥]É¥Ñ ÅÕ½Ðíѹ¥¹¤ÅÕ½Ðì°ÅÕ½ÐíAÉÍÐÅÕ½Ðì°ÅÕ½ÐíÄÅÕ½Ðì°U%
ÑɱI ÀÌØí%¹ÁÕÐĤ¤(%%¹¥]É¥Ñ ÅÕ½Ðíѹ¥¹¤ÅÕ½Ðì°ÅÕ½ÐíAÉÍÐÅÕ½Ðì°ÅÕ½ÐíÈÅÕ½Ðì°U%
ÑɱI ÀÌØí%¹ÁÕÐȤ¤(%%¹¥]É¥Ñ ÅÕ½Ðíѹ¥¹¤ÅÕ½Ðì°ÅÕ½ÐíAÉÍÐÅÕ½Ðì°ÅÕ½ÐíÌÅÕ½Ðì°U%
ÑɱI ÀÌØí%¹ÁÕÐ̤¤(%%¹¥]É¥Ñ ÅÕ½Ðíѹ¥¹¤ÅÕ½Ðì°ÅÕ½ÐíAÉÍÐÅÕ½Ðì°ÅÕ½ÐíÐÅÕ½Ðì°U%
ÑɱI ÀÌØí%¹ÁÕÐФ¤(%%¹¥]É¥Ñ ÅÕ½Ðíѹ¥¹¤ÅÕ½Ðì°ÅÕ½ÐíAÉÍÐÅÕ½Ðì°ÅÕ½ÐíÔÅÕ½Ðì°U%
ÑɱI ÀÌØí%¹ÁÕÐÔ¤¤(%%¹¥]É¥Ñ ÅÕ½Ðíѹ¥¹¤ÅÕ½Ðì°ÅÕ½ÐíAÉÍÐÅÕ½Ðì°ÅÕ½ÐíØÅÕ½Ðì°U%
ÑɱI ÀÌØí%¹ÁÕÐؤ¤(%%¹¥]É¥Ñ ÅÕ½Ðíѹ¥¹¤ÅÕ½Ðì°ÅÕ½ÐíAÉÍÐÅÕ½Ðì°ÅÕ½ÐíÜÅÕ½Ðì°U%
ÑɱI ÀÌØí%¹ÁÕÐܤ¤(%%¹¥]É¥Ñ ÅÕ½Ðíѹ¥¹¤ÅÕ½Ðì°ÅÕ½ÐíAÉÍÐÅÕ½Ðì°ÅÕ½ÐíàÅÕ½Ðì°U%
ÑɱI ÀÌØí%¹ÁÕÐत(%%¹¥]É¥Ñ ÅÕ½Ðíѹ¥¹¤ÅÕ½Ðì°ÅÕ½ÐíAÉÍÐÅÕ½Ðì°ÅÕ½ÐíäÅÕ½Ðì°U%
ÑɱI ÀÌØí%¹ÁÕÐ䤤(%%¹¥]É¥Ñ ÅÕ½Ðíѹ¥¹¤ÅÕ½Ðì°ÅÕ½ÐíAÉÍÐÅÕ½Ðì°ÅÕ½ÐíÄÀÅÕ½Ðì°U%
ÑɱI ÀÌØí%¹ÁÕÐÄÀ¤¤(%%¹¥]É¥Ñ ÅÕ½Ðíѹ¥¹¤ÅÕ½Ðì°ÅÕ½ÐíAÉÍÐÅÕ½Ðì°ÅÕ½ÐíÄÄÅÕ½Ðì°U%
ÑɱI ÀÌØí%¹ÁÕÐÄĤ¤(%%¹¥]É¥Ñ ÅÕ½Ðíѹ¥¹¤ÅÕ½Ðì°ÅÕ½ÐíAÉÍÐÅÕ½Ðì°ÅÕ½ÐíÄÈÅÕ½Ðì°U%
ÑɱI ÀÌØí%¹ÁÕÐÄȤ¤(

:lmao:


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

Try this

For $i = 1 To 12
        IniWrite("gta.ini", "Preset", "F" & $i, GUICtrlRead(Eval('Input' & $i)))
    Next

Not sure if Eval() works with handles correctly.

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