Posted By
|
Message
|
lembi2001
Registered 01/04/2005
Points 608
|
4th October, 2006 at 11:22:18 -
I have never EVER used ini's in any of my games but i am making a game that needs to use them. I am currently only testing the waters at the minute but i need to be able to call up different strings using the value of a counter. for instance the counter = 20 then i want a text box to display the string associated with that value.
I have tried allsorts of different things but each time the expression editor tells me it cannot understand my expression. please help. if i can get this to work then i can proceed with making my game.
n/a
|
Deleted User
|
4th October, 2006 at 11:51:25 -
You must use str$( 'counter here' ) to display counters inside strings.
|
lembi2001
Registered 01/04/2005
Points 608
|
4th October, 2006 at 11:58:44 -
I want to set the item of the group to the corresponding value of the counter.
i.e
1=Apple
2=Ball
3=Cat
4=Dog
5=Elephant
When the counter = 2 I want the text box to display the item that it relates to. etc...
n/a
|
axel Crazy?
Registered 05/02/2005
Points 4766
|
4th October, 2006 at 12:24:50 -
TGF, MMF or MMF2?
I guess you're better off using arrays with this. But if you want to load text data from an item, with a name relative to a counter, you should use this expression:
GroupItemString$( "Ini", "group", str$(Value("Counter")) )
n/a
|
lembi2001
Registered 01/04/2005
Points 608
|
4th October, 2006 at 12:54:20 -
thnx for the help. phizzy managed to sort it out for me though.
n/a
|
|
|