Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,038 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Data Copy Problem #293361
10/10/09 22:36
10/10/09 22:36
Joined: Apr 2002
Posts: 225
Twickenham,England
kiamonster Offline OP
Member
kiamonster  Offline OP
Member

Joined: Apr 2002
Posts: 225
Twickenham,England
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)

Re: Data Copy Problem [Re: kiamonster] #293503
10/11/09 22:52
10/11/09 22:52
Joined: Apr 2002
Posts: 225
Twickenham,England
kiamonster Offline OP
Member
kiamonster  Offline OP
Member

Joined: Apr 2002
Posts: 225
Twickenham,England
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!!!


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1