Data Copy Problem

Posted By: kiamonster

Data Copy Problem - 10/10/09 22:36

text l01_ch7
{
pos_x = 0;
pos_y = 0;
layer = 2;
font = medbluefont;
string = "0";
}
.
.
.
if(l01_t[6] < 99)
{
str_for_num(l01_ch7.string,l01_t[6]);
l01_ch7.visible = on;
}
The above code worked in version 5, but I'm tryimg to make it work in v6.
y latest effort was...
if(l01_t[6] < 99)
{
str_for_num(temp_chr1,5);
//str_cpy(temp_chr1,"2");
wait(1);
//str_cpy(l01_ch7.string,temp_chr1);
//str_cpy(l01_ch8.string,"5");
l01_ch8.string = temp_chr1;
wait(1);
l01_ch8.visible = on;
}
but the str_for_num and the assign both seem to fail.
Speed is not important here and I've tried to avoid v7 - but if I have to .... (despite the code changes & me being lazy)
Posted By: kiamonster

Re: Data Copy Problem - 10/11/09 22:52

in v5: str_for_num(l01_ch7.string,l01_t[6]);

in v6: l01_ch7.string = str_for_num(null.string,l01_t[6]);

Problem solved!!!
© 2024 lite-C Forums