Coding

 Reply to this postStart new topic

[CLEO-Q] INI File Poblem

LINK/2012
post May 13 2011, 11:05 PM
Post #1


I will kill you

Posts: 126
Joined: 13-May 11



Hi, Again.

Another poblem...
When I Stone a value from a INI file and try to store other value from the same INI, Nothing happens.

Example:
CODE
0AF4: 1@v = read_string_from_ini_file "cleo/file1.ini" section "File" key "art"
0AD1: show_formatted_text_highpriority "This is %s file" time 5000 1@v
wait 100
0AF4: 2@v = read_string_from_ini_file "cleo/file1.ini" section "File" key "nub"
0AD1: show_formatted_text_highpriority "Testing: %s" time 5000 2@v


It Get the first string (1@v) but the second string (2@v) it doesn't get.

Sorry for my bad english

This post has been edited by LINK2012: May 14 2011, 12:19 AM
Go to the top of the page
 
+Quote Post
LINK/2012
post May 14 2011, 12:19 AM
Post #2


I will kill you

Posts: 126
Joined: 13-May 11



I Edited my post with a new information.
Go to the top of the page
 
+Quote Post
Silent
post May 14 2011, 09:46 AM
Post #3


The master of cut retort

Group Icon

Posts: 239
From: Warsaw, PL
Joined: 21-July 10



@v variables use 4 vars, not only one. So, by using 1@v, you use 1@, 2@, 3@ and 4@. Use 5@v instead of 2@v.
Go to the top of the page
 
+Quote Post
LINK/2012
post May 14 2011, 03:26 PM
Post #4


I will kill you

Posts: 126
Joined: 13-May 11



Oh, Thanks.

Another doubt.

If I use the var 1@v (1@ 2@ 3@ 4@ ok?) and I use 2@v, it should replace the values from (2@ 3@ 4@) (5@) ok? Why it doesn't happen?

And another doubt
If I use the var 2@ (for a Integer value) after use of 1@v, it get the value?

This post has been edited by LINK2012: May 14 2011, 03:33 PM
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: