Page 4 of 5

PostPosted: Thu May 31, 2007 4:56 pm
by Troodon
Your code isn't working.
When I click 'save' it makes all the files 0.
I'll send you the files in your email now.
:)

PostPosted: Thu May 31, 2007 4:57 pm
by Sgt. Sparky
okay, I may have to wait untill later to look at them because I must leave Very Soon,
VERY soon.(5 mins or less)

PostPosted: Thu May 31, 2007 4:58 pm
by Troodon
No problem. 8)

PostPosted: Thu May 31, 2007 4:59 pm
by Sgt. Sparky
just e-mail em' and I will look at them later, I am leaving right this instant. :(

PostPosted: Thu May 31, 2007 5:00 pm
by Troodon
They are already in your inbox.
My postmen are moving at the speed of electrons. :lol:

PostPosted: Fri Jun 01, 2007 12:44 am
by Sgt. Sparky
Code: Select all
loadVars("kirjasto", "l33tfile");
kirjasto[place.textNumber] = input_data.textNumber;
saveVars("kirjasto", "l33tfile");
tulostus.textNumber =  kirjasto[0];
tulostus2.textNumber = kirjasto[1];
tulostus3.textNumber = kirjasto[2];
tulostus4.textNumber = kirjasto[3];
tulostus5.textNumber = kirjasto[4];
tulostus6.textNumber = kirjasto[5];
tulostus7.textNumber = kirjasto[6];
tulostus8.textNumber = kirjasto[7];
tulostus9.textNumber = kirjasto[8];
tulostus10.textNumber = kirjasto[9];

:D
that is the code you must use. :D

PostPosted: Fri Jun 01, 2007 9:32 am
by Troodon
Sparky, did you tried that code?
Because for me it can save numbers but not any text data. Not even a single letter. :?

EDIT:
Wait, I spotted something. I had an idea...

EDIT2:
Nope. My variable's save and group are the same name l33tfile so I tried to re-change it to "l33tfile", "l33tfile" instead of "kirjasto", "l33tfile". However it didn't work.

PostPosted: Fri Jun 01, 2007 3:11 pm
by Sgt. Sparky
tekdino wrote:Nope. My variable's save and group are the same name l33tfile so I tried to re-change it to "l33tfile", "l33tfile" instead of "kirjasto", "l33tfile". However it didn't work.

it needs to be "kirjasto" "i33file" otherwise it will not work.
:(
(and yes, I did try the code.)

EDIT: your code does not have any type of name saving.
(just numbers)

PostPosted: Fri Jun 01, 2007 3:17 pm
by Troodon
Where the text saving disappeared!?
The number saving worked normally before I posted this topic. All I need is to save text.
:cry:

PostPosted: Fri Jun 01, 2007 3:34 pm
by Sgt. Sparky
!!! oi !!! :lol:
okay,
now change kirjasto to string and use this code:
Code: Select all
loadVars("kirjasto", "l33tfile");
strcpy(kirjasto[place.textNumber], input_data.text);
saveVars("kirjasto", "l33tfile");
strcpy(tulostus.text, kirjasto[0]);
strcpy(tulostus2.text, kirjasto[1]);
strcpy(tulostus3.text, kirjasto[2]);
strcpy(tulostus4.text, kirjasto[3]);
strcpy(tulostus5.text, kirjasto[4]);
strcpy(tulostus6.text, kirjasto[5]);
strcpy(tulostus7.text, kirjasto[6]);
strcpy(tulostus8.text, kirjasto[7]);
strcpy(tulostus9.text, kirjasto[8]);
strcpy(tulostus10.text, kirjasto[9]);

:D
(it may come up with suspicious pointer somthing, accept it. :))

PostPosted: Fri Jun 01, 2007 3:41 pm
by Troodon
Weird, it doesn't work. But this time it doesn't give me error messages.
:wink: Do you still have my files on your hard disc?

PostPosted: Fri Jun 01, 2007 3:43 pm
by Sgt. Sparky
yes, lemme' look it over again. :D
(I have not deleted it because I thought there might be somthing you still want to do with it.)

PostPosted: Fri Jun 01, 2007 3:57 pm
by Troodon
Thanks! :D

PostPosted: Fri Jun 01, 2007 4:04 pm
by Sgt. Sparky
Code: Select all
loadVars("kirjasto", "l33tfile");
strcpy(kirjasto[place.textNumber], input_data.text);
saveVars("kirjasto", "l33tfile");
strcpy(tulostus.text, kirjasto[0]);
strcpy(tulostus2.text, kirjasto[1]);
strcpy(tulostus3.text, kirjasto[2]);
strcpy(tulostus4.text, kirjasto[3]);
strcpy(tulostus5.text, kirjasto[4]);
strcpy(tulostus6.text, kirjasto[5]);
strcpy(tulostus7.text, kirjasto[6]);
strcpy(tulostus8.text, kirjasto[7]);
strcpy(tulostus9.text, kirjasto[8]);
strcpy(tulostus10.text, kirjasto[9]);

it works for me. :)

PostPosted: Fri Jun 01, 2007 4:06 pm
by Troodon
It works for you??
Does the slots (0-9) chance?

Because it doesn't work for me!
:shock:

EDIT: It works when you can see the inputted text in one of the 0-9 places.