Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (3run, AndrewAMD), 667 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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 | chip programmers | 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