Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/20/26 15:57
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 3,544 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
juergenwue, VladMak, Geir, ondrej, mredit
19208 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