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
2 registered members (TipmyPip, 1 invisible), 18,758 guests, and 8 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
Page 2 of 2 1 2
Re: STRING* Array [Re: Ceryni] #356677
02/03/11 12:08
02/03/11 12:08
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline
Senior Member
3dgs_snake  Offline
Senior Member

Joined: Feb 2010
Posts: 320
TANA/Madagascar
Can you put here some of your code so people can check it?

Re: STRING* Array [Re: Ceryni] #356683
02/03/11 12:25
02/03/11 12:25
Joined: Dec 2010
Posts: 63
C
Ceryni Offline OP
Junior Member
Ceryni  Offline OP
Junior Member
C

Joined: Dec 2010
Posts: 63
like i said before my STRING* chatmsgs[5]; dont work i think

the receive function
Code:
{
	STRING* save_string = "#100"; 	
	str_cpy(save_string,msg);
	
	str_cpy(chatmsgs[4],chatmsgs[3]);
	str_cpy(chatmsgs[3],chatmsgs[2]);
	str_cpy(chatmsgs[2],chatmsgs[1]);
	str_cpy(chatmsgs[1],chatmsgs[0]);
	str_cpy(chatmsgs[0],save_string);
}



the panel
Code:
PANEL* chat_panel=
{
	digits(0,0,"%s",*,1,chatmsgs[4]);	
	digits(0,50,"%s",*,1,chatmsgs[3]);	
	digits(0,100,"%s",*,1,chatmsgs[2]);	
	digits(0,150,"%s",*,1,chatmsgs[1]);	
	digits(0,200,"%s",*,1,chatmsgs[0]);	
}



and the creation
Code:
int i;
for(i=0; i<5; i++)
chatmsgs[i] = str_create("");



when i dont display the panel everything else works fine when i want to display it the windows error apears

Re: STRING* Array [Re: Ceryni] #356695
02/03/11 14:13
02/03/11 14:13
Joined: Oct 2009
Posts: 149
Germany
M
muffel Offline
Member
muffel  Offline
Member
M

Joined: Oct 2009
Posts: 149
Germany
Just a guess:
Create the panel without the digits.
Then write a funktion which uses pan_setstring to set the strings/digits.
Call this function after you created the strings

muffel

Re: STRING* Array [Re: Ceryni] #356698
02/03/11 15:02
02/03/11 15:02
Joined: Dec 2010
Posts: 63
C
Ceryni Offline OP
Junior Member
Ceryni  Offline OP
Junior Member
C

Joined: Dec 2010
Posts: 63
Code:
PANEL* chat_panel = pan_create(NULL,0);
	
	for(i=0;i<5;i++) 
	{
		chatmsgs[i] = str_create("");	
		pan_setdigits(chat_panel,0,0,  (i*50),"%s",font_create("Arial#100"),1,chatmsgs[i]);
	}


that doesnt work

Re: STRING* Array [Re: Ceryni] #356699
02/03/11 15:04
02/03/11 15:04
Joined: Oct 2009
Posts: 149
Germany
M
muffel Offline
Member
muffel  Offline
Member
M

Joined: Oct 2009
Posts: 149
Germany
what does the compiler says or is it still the same error message?

muffel

Re: STRING* Array [Re: Ceryni] #356700
02/03/11 15:05
02/03/11 15:05
Joined: Dec 2010
Posts: 63
C
Ceryni Offline OP
Junior Member
Ceryni  Offline OP
Junior Member
C

Joined: Dec 2010
Posts: 63
sry thx with pan_setstring it works i didnt use it cause it didnt get red

Page 2 of 2 1 2

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